git.graph-it.com
/
graphit
/
schaltschrank.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a1ec06
)
Running message for websocket
author
Benjamin Braatz
<bb@bbraatz.eu>
Tue, 12 Jan 2021 15:09:21 +0000
(16:09 +0100)
committer
Benjamin Braatz
<bb@bbraatz.eu>
Tue, 12 Jan 2021 15:09:21 +0000
(16:09 +0100)
graphit_controlpi/websocket.py
patch
|
blob
|
history
diff --git
a/graphit_controlpi/websocket.py
b/graphit_controlpi/websocket.py
index cad06367a36e546cbb57da0961eb3c9535494352..7065f856b1bf3d4c8a8f9655f4b9f90734a0ff78 100644
(file)
--- 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")