MCPcopy Index your code
hub / github.com/Effect-TS/effect / layerWebSocket

Function layerWebSocket

packages/experimental/src/EventLogRemote.ts:445–456  ·  view source on GitHub ↗
(
  url: string,
  options?: {
    readonly disablePing?: boolean
  }
)

Source from the content-addressed store, hash-verified

443 * @category layers
444 */
445export const layerWebSocket = (
446 url: string,
447 options?: {
448 readonly disablePing?: boolean
449 }
450): Layer.Layer<
451 never,
452 never,
453 | Socket.WebSocketConstructor
454 | EventLog
455 | EventLogEncryption
456> => Layer.scopedDiscard(fromWebSocket(url, options))
457
458/**
459 * @since 1.0.0

Callers 1

layerWebSocketBrowserFunction · 0.70

Calls 1

fromWebSocketFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…