stephenmcd/django-socketio — pull request #13 by mispy (2012-01-20 03:41:33+00:00)
Title: Remove socket session_id from all subscribed channels on disconnect

django_socketio.broadcast_channel does this:

```python
try:
socket = CLIENTS[CHANNELS.get(channel, [])[0]][1]
except IndexError, KeyError:
raise NoSocket("There are no clients on the channel: " + channel)
```

Which will incorrectly report a NoSocket error if the first client in the channel has disconnected-- the session_id is present in the channel array but not in CLIENTS.