Spaces:
Sleeping
Sleeping
update. added session token
Browse files
relay.py
CHANGED
|
@@ -33,7 +33,7 @@ async def register_client(websocket: WebSocket, username: str, token: str):
|
|
| 33 |
"""Register a new client with a session token."""
|
| 34 |
active_connections[username] = websocket
|
| 35 |
session_tokens[username] = token # Store the session token
|
| 36 |
-
print(f"DEBUG: {username} connected with token.")
|
| 37 |
|
| 38 |
# Deliver undelivered messages if any
|
| 39 |
if username in message_store:
|
|
|
|
| 33 |
"""Register a new client with a session token."""
|
| 34 |
active_connections[username] = websocket
|
| 35 |
session_tokens[username] = token # Store the session token
|
| 36 |
+
print(f"DEBUG: {username} connected with token. {token}")
|
| 37 |
|
| 38 |
# Deliver undelivered messages if any
|
| 39 |
if username in message_store:
|