(self: Socket)
| 735 | * @since 4.0.0 |
| 736 | */ |
| 737 | export const toStream = (self: Socket): Stream.Stream<Uint8Array, SocketError> => |
| 738 | Stream.fromChannel( |
| 739 | Channel.fromTransform((_, scope) => Scope.provide(readerBytes(self), scope)) |
| 740 | ) |
| 741 | |
| 742 | /** |
| 743 | * Creates a binary socket `Channel` from the `Socket` service in the |
no test coverage detected