kernl

Type Alias: WebSocketConstructor()

type WebSocketConstructor = (url: string | URL, protocols?: string | string[]) => WebSocketLike;

Defined in: packages/protocol/src/realtime/types.ts:99

WebSocket constructor type for cross-platform compatibility.

Parameters

ParameterType
urlstring | URL
protocols?string | string[]

Returns

WebSocketLike

On this page