Skip to content

Commit 71564b1

Browse files
author
root
committed
fix bug in __init__.py
it was missing a line defining CLIENTS around line 11
1 parent 941ae43 commit 71564b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_socketio/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def send(session_id, message):
1212
"""
1313
Send a message to the socket for the given session ID.
1414
"""
15+
from django_socketio.views import CLIENTS
1516
try:
1617
socket = CLIENTS[session_id][1]
1718
except KeyError:

0 commit comments

Comments
 (0)