no path...
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user