From: Benjamin Braatz Date: Tue, 12 Jan 2021 15:09:21 +0000 (+0100) Subject: Running message for websocket X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=bb14c8767b96fe1b923933f5b195c326a5a795da;p=graphit%2Fschaltschrank.git Running message for websocket --- diff --git a/graphit_controlpi/websocket.py b/graphit_controlpi/websocket.py index cad0636..7065f85 100644 --- a/graphit_controlpi/websocket.py +++ b/graphit_controlpi/websocket.py @@ -64,4 +64,6 @@ def get_ip(): async def setup_websocket(pins, out_queue): parameterised_handler = functools.partial(handler, pins, out_queue) - await websockets.serve(parameterised_handler, get_ip(), 80) + hostname = get_ip() + await websockets.serve(parameterised_handler, hostname, 80) + print(f"Serving on ws://{hostname}:80")