be dual stack
All checks were successful
ci / docker (push) Successful in 1m9s

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-09-02 11:41:22 +02:00
parent 7e023a2af2
commit e763978b4a

View file

@ -34,7 +34,7 @@ async def handler(websocket):
async def main(): async def main():
# Start the WebSocket server # Start the WebSocket server
ws_port = os.environ.get("WS_PORT", 9999) ws_port = os.environ.get("WS_PORT", 9999)
server = await websockets.asyncio.server.serve(handler, "::", ws_port) server = await websockets.asyncio.server.serve(handler, "", ws_port)
print(f"WebSocket server listening on ws://[::]:{ws_port}") print(f"WebSocket server listening on ws://[::]:{ws_port}")
await server.wait_closed() await server.wait_closed()