Properties
Private
Optional
authentication
Private
callbacks
callbacks: Map<number, ((data?, error?) => void)> = ...
Type declaration
- (data?, error?): void
Returns void
clock_drift
clock_drift: number = 0.0
Private
current_ping_interval
current_ping_interval: number
Private
last_request_id
last_request_id: number = 0
latency
latency: number = 0.0
Private
manually_disconnected
manually_disconnected: boolean = false
Private
Optional
ping_timer
ping_timer?: Timeout
Private
promises_in_flight
promises_in_flight: Map<number, {
args: any[];
command: string;
reject: ((...args) => void);
resolve: ((...args) => void);
}> = ...
Type declaration
args: any[]
command: string
reject: ((...args) => void)
- (...args): void
Returns void
resolve: ((...args) => void)
- (...args): void
Returns void
Private
reconnect_tries
reconnect_tries: number = 0
Private
reconnecting
reconnecting: boolean = false
Private
send_queue
send_queue: (() => void)[] = []
Private
socket
socket: WebSocket
Private
Optional
timeout_timer
timeout_timer?: Timeout
This is a simple wrapper around the WebSocket API that provides a simple interface to connect to the Online-Go.com servers. It provides: