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: