From c7427353d5941a4528f0dff6966a5cbdbf18af79 Mon Sep 17 00:00:00 2001 From: Brett Kiefer Date: Fri, 25 Nov 2011 11:07:49 -0500 Subject: [PATCH] Publish a disconnect so that other processes clean up their subscriptions and closed client hashes. Call onDisconnect with local=true for the process that owns the client so that it disconnects from the message: and disconnect: channels for that client. --- lib/manager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/manager.js b/lib/manager.js index 5103b00af3..d27fa071b0 100644 --- a/lib/manager.js +++ b/lib/manager.js @@ -474,7 +474,8 @@ Manager.prototype.onClientDisconnect = function (id, reason) { typeof this.roomClients[id][name] !== 'undefined'); } - this.onDisconnect(id); + this.onDisconnect(id, true); + this.store.publish('disconnect', id); }; /**