Constructors
constructor
- new ReconnectingSocket(url: string, timeout?: number, reconnectedHandler?: (() => void)): ReconnectingSocket
Parameters
url: string
timeout: number = 10_000
Optional reconnectedHandler: (() => void)
Properties
Readonly connectionStatus
Methods
queueRequest
- queueRequest(request: string): void
A wrapper around QueueingStreamingSocket that reconnects automatically.