Constructors
constructor
- new ReconnectingSocket(url: string, timeout?: number, reconnectedHandler?: undefined | function): ReconnectingSocket
-
Parameters
-
url: string
-
Default value timeout: number = 10000
-
Optional reconnectedHandler: undefined | function
Methods
queueRequest
- queueRequest(request: string): void
A wrapper around QueueingStreamingSocket that reconnects automatically.