no path...

This commit is contained in:
2025-03-08 18:35:28 -07:00
parent fe78ca8841
commit da4c5203b3

View File

@@ -50,7 +50,7 @@ async def send_response_message(
): ):
await websocket.send(response.model_dump_json()) await websocket.send(response.model_dump_json())
async def websocket_handler(websocket: websockets.WebSocketServerProtocol, path: str): async def websocket_handler(websocket: websockets.WebSocketServerProtocol):
connected_clients.add(websocket) connected_clients.add(websocket)
try: try:
async for message in websocket: async for message in websocket:
@@ -107,7 +107,7 @@ async def pause(ctx: commands.Context):
async def start_websocket_server(): async def start_websocket_server():
print("Starting WebSocket server...") print("Starting WebSocket server...")
async with websockets.serve(websocket_handler, "0.0.0.0", 5678): async with websockets.serve(websocket_handler, "0.0.0.0", 5678, ):
await asyncio.Future() await asyncio.Future()