You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$log.debug('wcClient keep alive is up. will send ping \'options.keepAliveMessage\': ['+options.keepAliveMessage+'] every \'options.keepAliveIntervalTime\': ['+options.keepAliveIntervalTime+'] ms');
146
147
keepAliveInterval=$interval(function(){
147
148
that.send(options.keepAliveMessage);
@@ -156,10 +157,11 @@
156
157
// no need for this if disconnected
157
158
if(keepAliveInterval){
158
159
$interval.cancel(keepAliveInterval);
160
+
keepAliveInterval=null;
159
161
}
160
162
161
163
// try to reestablish connection
162
-
if(options.reconnect){
164
+
if(options.reconnect&&!reconnectInterval){
163
165
$log.debug('wsClient will try to reconnect in ['+options.reconnectIntervalTimeout+'] ms');
0 commit comments