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

Function layerWebSocket

packages/effect/src/unstable/devtools/DevTools.ts:31–36  ·  view source on GitHub ↗
(
  url = "ws://localhost:34437"
)

Source from the content-addressed store, hash-verified

29 * @since 4.0.0
30 */
31export const layerWebSocket = (
32 url = "ws://localhost:34437"
33): Layer.Layer<never, never, Socket.WebSocketConstructor> =>
34 DevToolsClient.layerTracer.pipe(
35 Layer.provide(Socket.layerWebSocket(url))
36 )
37
38/**
39 * Layer that installs the devtools tracer over a WebSocket connection using the

Callers 1

layerFunction · 0.70

Calls 2

pipeMethod · 0.65
provideMethod · 0.45

Tested by

no test coverage detected