Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

stop reconnecting after force close

If close() is called when the websocket connection is down it should not try to
reconnect.
  • Loading branch information...
commit d7fae3d7b4741156569e90c28555dc2d8e8d98b7 1 parent 64fd940
@relekang relekang authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  reconnecting-websocket.js
View
2  reconnecting-websocket.js
@@ -155,8 +155,8 @@ function ReconnectingWebSocket(url, protocols) {
};
this.close = function() {
+ forcedClose = true;
if (ws) {
- forcedClose = true;
ws.close();
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.