We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I call .disconnect, then this code is executed:
SimpleWebRTC.prototype.disconnect = function () { if (this.connection) { this.connection.disconnect(); delete this.connection; } };
so later it will crash here:
this.webrtc.on('message', function (payload) { self.connection.emit('message', payload); });
since self.connection is undefined.
The text was updated successfully, but these errors were encountered:
I guess you can check if the connection is still active before calling emit
Sorry, something went wrong.
it is not me calling self.connection.emit, this is webrtc calling it:
No branches or pull requests
If I call .disconnect, then this code is executed:
so later it will crash here:
since self.connection is undefined.
The text was updated successfully, but these errors were encountered: