The maximum time to wait in ms for a successful connection to be made.
The maximum number of times to reconnect, after which the connection will fail.
The time to wait between connection attempts.
Whether to attempt to reconnect when first connecting.
Defines the class / constructor that should be used to create WebSocket objects. This is useful when operating in NodeJS where a library like ws or isomorphic-ws can be used to provide a client side WebSocket API.