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

Function toChannelWith

packages/effect/src/unstable/socket/Socket.ts:503–512  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

501 * @since 4.0.0
502 */
503export const toChannelWith = <IE = never>() =>
504(
505 self: Socket
506): Channel.Channel<
507 NonEmptyReadonlyArray<Uint8Array>,
508 SocketError | IE,
509 void,
510 NonEmptyReadonlyArray<Uint8Array | string | CloseEvent>,
511 IE
512> => toChannel(self)
513
514/**
515 * Creates a binary socket `Channel` from the `Socket` service in the

Callers 2

makeChannelFunction · 0.85
makeWebSocketChannelFunction · 0.85

Calls 1

toChannelFunction · 0.70

Tested by

no test coverage detected