From 89f54bae5558f948078982e6f3434ddc21951ab4 Mon Sep 17 00:00:00 2001 From: shuim Date: Wed, 25 Feb 2026 13:36:46 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index 2f84539..a950f93 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -538,7 +538,7 @@ async def health_check(): @app.websocket("/ws/{client_id}") async def websocket_endpoint(websocket: WebSocket, client_id: str): - \"\"\"WebSocket 연결 엔드포인트. + """WebSocket 연결 엔드포인트. 클라이언트→서버 지원 프로토콜: {"type": "ping"} → {"type": "pong"} @@ -548,7 +548,7 @@ async def websocket_endpoint(websocket: WebSocket, client_id: str): {"type": "get_chart", "stock_code": "...", "period": "D", "limit": 200} → {"type": "chart_data", ...} 그 외 메시지 → echo - \"\"\" + """ await websocket_manager.connect(websocket, client_id) try: while True: