Skip to main content Link Search Menu Expand Document (external link)

BrowserSocket overview

Added in v1.0.0


Table of contents


layers

layerWebSocket

Signature

export declare const layerWebSocket: (
  url: string,
  options?: { readonly closeCodeIsError?: (code: number) => boolean }
) => Layer.Layer<Socket.Socket>

Added in v1.0.0

layerWebSocketConstructor

A WebSocket constructor that uses globalThis.WebSocket.

Signature

export declare const layerWebSocketConstructor: Layer.Layer<Socket.WebSocketConstructor>

Added in v1.0.0