MCPcopy Create free account
hub / github.com/Effect-TS/effect / toChannelWith

Function toChannelWith

packages/effect/src/socket/Socket.ts:718–727  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

716 * @since 4.0.0
717 */
718export const toChannelWith = <IE = never>() =>
719(
720 self: Socket
721): Channel.Channel<
722 NonEmptyReadonlyArray<Uint8Array>,
723 SocketError | IE,
724 void,
725 NonEmptyReadonlyArray<Uint8Array | string | CloseEvent>,
726 IE
727> => toChannel(self)
728
729/**
730 * Converts a `Socket` into a read-only binary `Stream` backed by the socket's

Callers 2

makeChannelFunction · 0.85
makeWebSocketChannelFunction · 0.85

Calls 1

toChannelFunction · 0.70

Tested by

no test coverage detected