diff --git a/index.js b/index.js index 4448c56..6447960 100644 --- a/index.js +++ b/index.js @@ -309,6 +309,7 @@ Client.prototype.getTransport = function getTransport(cb) { }); transport.once("connect", function () { + me.emit('connect'); transport.setTimeout(0); });