( options: Net.NetConnectOpts )
| 244 | * @since 4.0.0 |
| 245 | */ |
| 246 | export const makeNetChannel = <IE = never>( |
| 247 | options: Net.NetConnectOpts |
| 248 | ): Channel.Channel< |
| 249 | Array.NonEmptyReadonlyArray<Uint8Array>, |
| 250 | Socket.SocketError | IE, |
| 251 | void, |
| 252 | Array.NonEmptyReadonlyArray<Uint8Array | string | Socket.CloseEvent>, |
| 253 | IE |
| 254 | > => |
| 255 | Channel.unwrap( |
| 256 | Effect.map(makeNet(options), Socket.toChannelWith<IE>()) |
| 257 | ) |
| 258 | |
| 259 | /** |
| 260 | * Provides a `Socket.Socket` by opening a TCP connection with the supplied |