MCPcopy
hub / github.com/Effect-TS/effect / makeNetChannel

Function makeNetChannel

packages/platform-node-shared/src/NodeSocket.ts:203–215  ·  view source on GitHub ↗
(
  options: Net.NetConnectOpts
)

Source from the content-addressed store, hash-verified

201 * @category constructors
202 */
203export const makeNetChannel = <IE = never>(
204 options: Net.NetConnectOpts
205): Channel.Channel<
206 Chunk.Chunk<Uint8Array>,
207 Chunk.Chunk<Uint8Array | string | Socket.CloseEvent>,
208 Socket.SocketError | IE,
209 IE,
210 void,
211 unknown
212> =>
213 Channel.unwrapScoped(
214 Effect.map(makeNet(options), Socket.toChannelWith<IE>())
215 )
216
217/**
218 * @since 1.0.0

Callers

nothing calls this directly

Calls 2

makeNetFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…