This commit is contained in:
@@ -26,6 +26,8 @@ async def register_client(websocket, client_id, client_nickname):
|
||||
# Create a JWT for the client
|
||||
current_app.active_clients[client_id].access_token = create_access_token(identity={"id": client_id, "username": client_nickname, "type": "node"})
|
||||
|
||||
print(current_app.active_clients[client_id])
|
||||
|
||||
# Start a task to listen for messages from this client
|
||||
asyncio.create_task(listen_to_client(websocket, client_id))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user