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

Function makeChannel

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

Source from the content-addressed store, hash-verified

519 * @since 4.0.0
520 */
521export const makeChannel = <IE = never>(): Channel.Channel<
522 NonEmptyReadonlyArray<Uint8Array>,
523 SocketError | IE,
524 void,
525 NonEmptyReadonlyArray<Uint8Array | string | CloseEvent>,
526 IE,
527 unknown,
528 Socket
529> => Channel.unwrap(Effect.map(Socket, toChannelWith<IE>()))
530
531/**
532 * Default close-code classifier that treats every socket close code as an

Callers

nothing calls this directly

Calls 2

toChannelWithFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected