diff --git a/lib/manager.js b/lib/manager.js index 909eca4a9c..b77b9d6428 100644 --- a/lib/manager.js +++ b/lib/manager.js @@ -474,6 +474,7 @@ Manager.prototype.onClientDisconnect = function (id, reason, local) { typeof this.roomClients[id][name] !== 'undefined'); } + if (local) this.store.publish('disconnect', id); this.onDisconnect(id, local); };