attempting proxying
This commit is contained in:
@@ -28,6 +28,7 @@ def get_queue(user_id: str, connection_id: str) -> queue.Queue:
|
|||||||
|
|
||||||
def send_to_user(user_id: str, data: Dict[str, Any]):
|
def send_to_user(user_id: str, data: Dict[str, Any]):
|
||||||
"""Send data to all connections for a specific user."""
|
"""Send data to all connections for a specific user."""
|
||||||
|
logger.info(f"Sending data to {user_id}")
|
||||||
if user_id in user_queues:
|
if user_id in user_queues:
|
||||||
# Format as SSE message once
|
# Format as SSE message once
|
||||||
message = f"data: {json.dumps(data)}\n\n".encode('utf-8')
|
message = f"data: {json.dumps(data)}\n\n".encode('utf-8')
|
||||||
|
|||||||
Reference in New Issue
Block a user