Open stiv-yakovenko opened 6 years ago
I guess you can check if the connection is still active before calling emit
it is not me calling self.connection.emit, this is webrtc calling it:
this.webrtc.on('message', function (payload) { self.connection.emit('message', payload); });
If I call .disconnect, then this code is executed:
so later it will crash here:
since self.connection is undefined.