( options: Net.NetConnectOpts )
| 201 | * @category constructors |
| 202 | */ |
| 203 | export const makeNetChannel = <IE = never>( |
| 204 | options: Net.NetConnectOpts |
| 205 | ): Channel.Channel< |
| 206 | Chunk.Chunk<Uint8Array>, |
| 207 | Chunk.Chunk<Uint8Array | string | Socket.CloseEvent>, |
| 208 | Socket.SocketError | IE, |
| 209 | IE, |
| 210 | void, |
| 211 | unknown |
| 212 | > => |
| 213 | Channel.unwrapScoped( |
| 214 | Effect.map(makeNet(options), Socket.toChannelWith<IE>()) |
| 215 | ) |
| 216 | |
| 217 | /** |
| 218 | * @since 1.0.0 |