We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38db2df + e8c64cf commit 3244627Copy full SHA for 3244627
django_socketio/views.py
@@ -70,5 +70,8 @@ def socketio(request):
70
print_exc()
71
events.on_error.send(request, socket, context, exception)
72
events.on_finish.send(request, socket, context)
73
+ from django_socketio.channels import CHANNELS
74
+ for channel in socket.channels:
75
+ CHANNELS[channel].remove(socket.session.session_id)
76
del CLIENTS[socket.session.session_id]
77
return HttpResponse("")
0 commit comments