Properties
Private
_authPromise
_authPromise: any
Private
_connectionState
_connectionState: any
Private
_wasManualDisconnect
_wasManualDisconnect: any
Private
_workerObjectUrl
_workerObjectUrl: any
accessToken
accessToken: null | (() => Promise<null | string>)
accessTokenValue
accessTokenValue: null | string
apiKey
apiKey: null | string
channels
conn
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?: {
[key: string]: string;
}
heartbeatCallback
heartbeatCallback: ((status: HeartbeatStatus) => void)
Type declaration
-
- (status: HeartbeatStatus): void
-
Returns void
heartbeatIntervalMs
heartbeatIntervalMs: number
heartbeatTimer
heartbeatTimer: undefined | Timer
httpEndpoint
httpEndpoint: string
Optional
logLevel
logLevel?: LogLevel
logger
logger: Function
Optional
params
params?: {
[key: string]: string;
}
pendingHeartbeatRef
pendingHeartbeatRef: null | string
reconnectAfterMs
reconnectAfterMs: Function
reconnectTimer
reconnectTimer: null | 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
Optional
worker
worker?: boolean
Optional
workerRef
workerRef?: Worker
Optional
workerUrl
workerUrl?: string
Initializes the Socket.