Properties
Private _workerObjectUrl
_workerObjectUrl: any
accessToken
accessToken: null | (() => Promise<null | string>)
accessTokenValue
accessTokenValue: null | string
apiKey
apiKey: null | string
channels
conn
conn: null | WebSocketLike
decode
decode: Function
encode
encode: Function
endPoint
endPoint: string
fetch
fetch: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)
Type declaration
- (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
Parameters
input: RequestInfo | URL
Optional init: RequestInit
Returns Promise<Response>
Optional headers
headers?: {}
heartbeatIntervalMs
heartbeatIntervalMs: number
heartbeatTimer
heartbeatTimer: undefined | Timer
httpEndpoint
httpEndpoint: string
logger
logger: Function
Optional params
params?: {}
pendingHeartbeatRef
pendingHeartbeatRef: null | string
reconnectAfterMs
reconnectAfterMs: Function
reconnectTimer
reconnectTimer: default
ref
ref: number
sendBuffer
sendBuffer: Function[]
serializer
serializer: default
stateChangeCallbacks
stateChangeCallbacks: { close: Function[]; error: Function[]; message: Function[]; open: Function[] }
Type declaration
close: Function[]
error: Function[]
message: Function[]
open: Function[]
timeout
timeout: number
transport
transport: null | WebSocketLikeConstructor
Optional worker
worker?: boolean
Optional workerRef
workerRef?: Worker
Optional workerUrl
workerUrl?: string
Initializes the Socket.