From 7a82a4dbf474f3a4917e14d2c152c50fc0a9796c Mon Sep 17 00:00:00 2001 From: Para Dox Date: Sun, 27 Apr 2025 23:06:16 +0700 Subject: [PATCH] simple look --- logging-proxy/proxy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/logging-proxy/proxy.py b/logging-proxy/proxy.py index a4a73bfc..3a906dd3 100644 --- a/logging-proxy/proxy.py +++ b/logging-proxy/proxy.py @@ -68,14 +68,14 @@ def proxy(): return jsonify(outgoing) -# New WebSocket handler -@sockets.route('/') +# WebSocket handler moved to '/ws' +@sockets.route('/ws') # <--- Changed path from '/' to '/ws' def proxy_socket(ws): """Handles incoming WebSocket connections and relays messages.""" - print("==> WebSocket connection received", file=sys.stdout, flush=True) + print("==> WebSocket connection received on /ws", file=sys.stdout, flush=True) # <--- Updated log message target_ws = None try: - # Connect to the target WebSocket server + # Connect to the target WebSocket server (TARGET_URL_WS usually doesn't need a path) target_ws = websocket.create_connection(TARGET_URL_WS) print(f"==> WebSocket connection established to {TARGET_URL_WS}", file=sys.stdout, flush=True)