LearnBoost/socket.io — pull request #1082 by shapeshed (2012-11-12 13:29:30+00:00)
Title: Fix leaking message:id, disconnect:id

When using RedisStore and clustering processes Redis leaks pubsub channels. This leads to high CPU especially over time as more and more channels leak. When using xhr-polling and clustering processes `message` and `disconnect` channels are not unsubscribed correctly. Websocket connections correctly unsubscribe from the message and disconnect channels.

This commit reverted passing the local flag through to `Manager.prototype.onClientDisconnect` and subsequently `Manager.prototype.onClientDisconnect`, but this is required to handled unsubscribing.

https://github.com/shapeshed/socket.io/commit/94d513c85a960f2a041e9027cee09cc87b89edf6