Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

When client handshake fails, close with the right code and reason.

  • Loading branch information...
commit 9c1e260784bed264ae473bf56896b05f2316c4ef 1 parent 1ba9b85
James Coglan jcoglan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/faye/websocket/client.js
2  lib/faye/websocket/client.js
View
@@ -61,7 +61,7 @@ Client.prototype._onData = function(data) {
} else {
this.readyState = API.CLOSED;
- var event = new API.Event('close');
+ var event = new API.Event('close', {code: 1006, reason: ''});
event.initEvent('close', false, false);
this.dispatchEvent(event);
}
Please sign in to comment.
Something went wrong with that request. Please try again.