( options: Parameters<typeof makeNet>[0] )
| 548 | * @since 4.0.0 |
| 549 | */ |
| 550 | export const makeNetChannel = <IE = never>( |
| 551 | options: Parameters<typeof makeNet>[0] |
| 552 | ): Channel.Channel< |
| 553 | Arr.NonEmptyReadonlyArray<Uint8Array>, |
| 554 | Socket.SocketError | IE, |
| 555 | void, |
| 556 | Arr.NonEmptyReadonlyArray<Uint8Array | string | Socket.CloseEvent>, |
| 557 | IE |
| 558 | > => |
| 559 | Channel.unwrap( |
| 560 | Effect.map(makeNet(options), Socket.toChannelWith<IE>()) |
| 561 | ) |
| 562 | |
| 563 | /** |
| 564 | * Provides a `Socket.Socket` by opening a TCP connection with the supplied |