Properties
Optional
alive
alive?: boolean = false
apiversion
apiversion: string | number = ...
currReconnectAttempt
currReconnectAttempt: number = 0
emitter
emitter: {
_events: any;
options: {
ignoreWarns: boolean;
};
emit(name: string | number, ...args: any[]): void;
manager(): {
_events: any;
options: {
ignoreWarns: boolean;
};
};
on(name: string | number, listener: any): void;
once(name: string | number, listener: any): void;
removeAllListeners(name: string | number): void;
removeListener(name: string | number, listenerToRemove: any): void;
removeONCElisteners(name: string | number): void;
removeONlisteners(name: string | number): void;
resetListeners(): boolean;
resetONCElisteners(): boolean;
resetONlisteners(): boolean;
} = ...
Type declaration
-
_events: any
-
options: {
ignoreWarns: boolean;
}
-
emit:function
- emit(name: string | number, ...args: any[]): void
-
Parameters
-
name: string | number
-
Rest
...args: any[]
Returns void
-
manager:function
- manager(): {
_events: any;
options: {
ignoreWarns: boolean;
};
}
-
Returns {
_events: any;
options: {
ignoreWarns: boolean;
};
}
-
_events: any
-
options: {
ignoreWarns: boolean;
}
-
on:function
- on(name: string | number, listener: any): void
-
Parameters
-
name: string | number
-
listener: any
Returns void
-
once:function
- once(name: string | number, listener: any): void
-
Parameters
-
name: string | number
-
listener: any
Returns void
-
removeAllListeners:function
- removeAllListeners(name: string | number): void
-
Returns void
-
removeListener:function
- removeListener(name: string | number, listenerToRemove: any): void
-
Parameters
-
name: string | number
-
listenerToRemove: any
Returns void
-
removeONCElisteners:function
- removeONCElisteners(name: string | number): void
-
Returns void
-
removeONlisteners:function
- removeONlisteners(name: string | number): void
-
Returns void
-
resetListeners:function
- resetListeners(): boolean
-
Returns boolean
-
resetONCElisteners:function
- resetONCElisteners(): boolean
-
Returns boolean
-
resetONlisteners:function
- resetONlisteners(): boolean
-
Returns boolean
firstwsMessage
firstwsMessage: boolean = true
lastMessageID
lastMessageID: null | string = null
lastPingTime
lastPingTime: number = NaN
proxyURL
proxyURL: string = ...
Optional
reconnect
reconnect?: boolean = ...
reconnectAttemptLimit
reconnectAttemptLimit: number = ...
Optional
replayMissedEvents
replayMissedEvents?: boolean = ...
token
token: string = ...
Websocket manager, used to receive ws events.