diff --git a/src/client.js b/src/client.js index 3f4cc46..0a0ef38 100644 --- a/src/client.js +++ b/src/client.js @@ -71,7 +71,6 @@ class Client { }) clearInterval(this.heartbeatTask) - this.ws.close() } run(websocket) { @@ -147,12 +146,6 @@ class Client { this.heartbeat() cb.bind(this)(res) } - } else if (clientEventName === 'disconnect') { - let cb = callback - callback = function (res) { - this.logout() - cb.bind(this)(res) - } } this.clientEvent[method].listener = callback.bind(this) }