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

Function webSocketSocketClient

packages/platform/node-shared/benchmark/Socket.ts:234–239  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

232 runScoped(Effect.flatMap(NodeSocket.makeNet({ host: "127.0.0.1", port, noDelay: true }), socketClient))
233
234const webSocketSocketClient = (url: string) =>
235 runScoped(
236 Effect.flatMap(Socket.makeWebSocket(url), socketClient).pipe(
237 Effect.provideService(Socket.WebSocketConstructor, (url, options) => new WebSocket(url, options as any))
238 )
239 )
240
241const netEchoPort = portOf(netEchoServer)
242const netStreamPort = portOf(netStreamServer)

Callers 1

Socket.tsFile · 0.85

Calls 2

runScopedFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected