From ca3e4eb788492d2cc8faaaa05be2445a8e678321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= Date: Thu, 5 Apr 2018 08:56:45 +0200 Subject: [PATCH] Fix #511. Add missing payload on 'UA:disconnected' event --- lib/Transport.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)