( options: Parameters<typeof makeTls>[0] )
| 644 | * @since 4.0.0 |
| 645 | */ |
| 646 | export const makeTlsChannel = <IE = never>( |
| 647 | options: Parameters<typeof makeTls>[0] |
| 648 | ): Channel.Channel< |
| 649 | Arr.NonEmptyReadonlyArray<Uint8Array>, |
| 650 | Socket.SocketError | IE, |
| 651 | void, |
| 652 | Arr.NonEmptyReadonlyArray<Uint8Array | string | Socket.CloseEvent>, |
| 653 | IE |
| 654 | > => |
| 655 | Channel.unwrap( |
| 656 | Effect.map(makeTls(options), Socket.toChannelWith<IE>()) |
| 657 | ) |
| 658 | |
| 659 | /** |
| 660 | * Provides a `Socket.Socket` by opening a TLS connection with the supplied |