Calling mayReconnect one more time to allow reconnect_failed to be fired #516

Closed
wants to merge 1 commit into
from
Jump to file
+2 −0
Split
View
@@ -551,6 +551,8 @@
self.transport = self.getTransport();
self.redoTransports = true;
self.connect();
+ self.publish('reconnecting', self.reconnectionDelay, self.reconnectionAttempts);
+ self.reconnectionTimer = setTimeout(maybeReconnect, self.reconnectionDelay);
} else {
self.publish('reconnect_failed');
reset();