Skip to content

Commit

Permalink
Do not manually set the websocket-component status
Browse files Browse the repository at this point in the history
  • Loading branch information
wburgers committed Jan 7, 2018
1 parent 4fe8a5a commit d479c8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/basic-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
this.onmessage({ 'data': data });
},
onopen: function() {
this.readyState = 1;
this._listeners["open"].forEach(function(callback) {
callback();
});
Expand Down
1 change: 1 addition & 0 deletions test/shared-basic-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
this.onclose({'code': 1000, 'reason': ''});
},
onopen: function() {
this.readyState = 1;
this._listeners["open"].forEach(function(callback) {
callback();
});
Expand Down
2 changes: 1 addition & 1 deletion websocket-component.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
}

_onwsopen() {
this._setStatus(1);
this._computeStatus(undefined);
this.dispatchEvent(new CustomEvent("websocket-open"));
this._processSendQueue();
}
Expand Down

0 comments on commit d479c8d

Please sign in to comment.