diff --git a/lib/Transport.js b/lib/Transport.js index 9bfb4b912..ba6d39801 100644 --- a/lib/Transport.js +++ b/lib/Transport.js @@ -160,7 +160,10 @@ module.exports = class Transport this.socket.ondata = () => {}; this.socket.disconnect(); - this.ondisconnect(); + this.ondisconnect({ + socket : this.socket, + error : false + }); } send(data)