This example doesn't work with timeoutInterval because it needs to be present when the socket autoconnects the first time.
var socket = new ReconnectingWebSocket(url);
socket.debug = true;
socket.timeoutInterval = 5400;
It's only possible to set the timeoutInterval in the options param. Just wanted to note this since it is the example in the docs. The other options are fine though.
This example doesn't work with
timeoutInterval
because it needs to be present when the socket autoconnects the first time.It's only possible to set the timeoutInterval in the options param. Just wanted to note this since it is the example in the docs. The other options are fine though.