Interface: WebSocketClientOptions
Properties
WebSocket
optionalWebSocket: (url,protocols?) =>WebSocket
Parameters
| Parameter | Type | 
|---|---|
| url | string|URL | 
| protocols? | string|string[] | 
Returns
WebSocket
Type declaration
WebSocket.CLOSED
readonlyCLOSED:3WebSocket.CLOSING
readonlyCLOSING:2WebSocket.CONNECTING
readonlyCONNECTING:0WebSocket.OPEN
readonlyOPEN:1WebSocket.prototype
prototype:
WebSocket
Source
packages/client/dist/links/wsLink.d.ts:11
onClose
optionalonClose: (cause?) =>void
Parameters
| Parameter | Type | 
|---|---|
| cause? | object | 
| cause.code? | number | 
Returns
void
Source
packages/client/dist/links/wsLink.d.ts:14
onOpen
optionalonOpen: () =>void
Returns
void
Source
packages/client/dist/links/wsLink.d.ts:13
retryDelayMs
optionalretryDelayMs: (attemptIndex) =>number
Parameters
| Parameter | Type | 
|---|---|
| attemptIndex | number | 
Returns
number
Source
packages/client/dist/links/wsLink.d.ts:12
url
url:
string| () =>string
Source
packages/client/dist/links/wsLink.d.ts:10
Generated using TypeDoc and typedoc-plugin-markdown