-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure websocket connection is open before sending #1078
Conversation
@frozeman any thoughts on this one? We are running off a fork in prod now because of this. We aren't alone if you check the issues list. |
@@ -209,6 +209,16 @@ WebsocketProvider.prototype.send = function (payload, callback) { | |||
// try reconnect, when connection is gone | |||
// if(!this.connection.writable) | |||
// this.connection.connect({url: this.url}); | |||
if (this.connection.readyState !== this.connection.OPEN) { | |||
console.trace() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the console trace here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@frozeman done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trace removed
2 similar comments
@frozeman This test failed due to something in shh. Should I change anything or can we move this forward?
(I don't have access to re-build) |
If tests don't pass, then we can't move forward :) |
1 similar comment
@frozeman Sorry about that. All good now, dummy commit worked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting matches project standard
Thanks! |
* Ensure websocket connection is open before sending to prevent unhandled error. * [console] remove trace on ws error * Trigger tests rebuild * [formatting] add semicolons;
to prevent unhandled error.