( self: Socket )
| 657 | * @since 4.0.0 |
| 658 | */ |
| 659 | export const toChannel = <IE = never>( |
| 660 | self: Socket |
| 661 | ): Channel.Channel< |
| 662 | NonEmptyReadonlyArray<Uint8Array>, |
| 663 | SocketError | IE, |
| 664 | void, |
| 665 | NonEmptyReadonlyArray<Uint8Array | string | CloseEvent>, |
| 666 | IE |
| 667 | > => toChannelWithReader<Uint8Array, IE>(self, readerBytes(self)) |
| 668 | |
| 669 | /** |
| 670 | * Converts a `Socket` into a bidirectional string `Channel`, decoding binary |
no test coverage detected