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

Function makeNetChannel

packages/platform/node-shared/src/NodeSocket.ts:550–561  ·  view source on GitHub ↗
(
  options: Parameters<typeof makeNet>[0]
)

Source from the content-addressed store, hash-verified

548 * @since 4.0.0
549 */
550export const makeNetChannel = <IE = never>(
551 options: Parameters<typeof makeNet>[0]
552): Channel.Channel<
553 Arr.NonEmptyReadonlyArray<Uint8Array>,
554 Socket.SocketError | IE,
555 void,
556 Arr.NonEmptyReadonlyArray<Uint8Array | string | Socket.CloseEvent>,
557 IE
558> =>
559 Channel.unwrap(
560 Effect.map(makeNet(options), Socket.toChannelWith<IE>())
561 )
562
563/**
564 * Provides a `Socket.Socket` by opening a TCP connection with the supplied

Callers

nothing calls this directly

Calls 2

makeNetFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected