Skip to content
Permalink
Browse files

Merge pull request #336 from xdumaine/websocket-close-event

Surface websocket close event
  • Loading branch information...
legastero committed May 15, 2019
2 parents 1d292a3 + 6dbc2c4 commit 45f183addc34a68281e021b97e40d030935e60dc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/transports/websocket.js
@@ -83,8 +83,8 @@ export default class WSConnection extends WildEmitter {
}
self.emit('disconnected', self);
};
self.conn.onclose = function() {
self.emit('disconnected', self);
self.conn.onclose = function(e) {
self.emit('disconnected', self, e);
};
self.conn.onopen = function() {
self.sm.started = false;

0 comments on commit 45f183a

Please sign in to comment.
You can’t perform that action at this time.