Properties
heartbeatIn
heartbeatIn: number
heartbeatOut
heartbeatOut: number
isDebugEnabled
isDebugEnabled: boolean
password
password: string
presetServer
presetServer: number
retryTime
retryTime: number
serverURL
serverURL: string
username
username: string
Methods
onConnect
- onConnect(cb: unknown): void
onError
- onError(cb: unknown): void
onWebSocketClose
- onWebSocketClose(cb: unknown): void
subscribe
- subscribe(channel: string, cb: unknown): void
-
Parameters
-
channel: string
-
cb: unknown
Returns void
Client Interface, all Client should should implement this interface.