Skip to main content
Version: 10.x

Interface: WebSocketClientOptions

Properties

WebSocket

optional WebSocket: (url, protocols?) => WebSocket

Parameters

ParameterType
urlstring | URL
protocols?string | string[]

Returns

WebSocket

Type declaration

WebSocket.CLOSED

readonly CLOSED: 3

WebSocket.CLOSING

readonly CLOSING: 2

WebSocket.CONNECTING

readonly CONNECTING: 0

WebSocket.OPEN

readonly OPEN: 1

WebSocket.prototype

prototype: WebSocket

Source

packages/client/src/links/wsLink.ts:27


onClose

optional onClose: (cause?) => void

Parameters

ParameterType
cause?object
cause.code?number

Returns

void

Source

packages/client/src/links/wsLink.ts:30


onOpen

optional onOpen: () => void

Returns

void

Source

packages/client/src/links/wsLink.ts:29


retryDelayMs

optional retryDelayMs: (attemptIndex) => number

Parameters

ParameterType
attemptIndexnumber

Returns

number

Source

packages/client/src/links/wsLink.ts:28


url

url: string | () => string

Source

packages/client/src/links/wsLink.ts:26


Generated using TypeDoc and typedoc-plugin-markdown