client now connects to public server
This commit is contained in:
parent
a7cf851c90
commit
94e5e7f96c
|
|
@ -95,4 +95,5 @@ ENV/
|
||||||
.ropeproject
|
.ropeproject
|
||||||
|
|
||||||
# -- project specific --
|
# -- project specific --
|
||||||
|
_ignore/
|
||||||
screenlog.*
|
screenlog.*
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
// Constants and variables
|
// Constants and variables
|
||||||
const wsUri = "ws://localhost:8765";
|
//const wsUri = "ws://localhost:8765";
|
||||||
|
const wsUri = "ws://chat.glitch-in.space:32715";
|
||||||
let websocket;
|
let websocket;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ async def hello(websocket, path):
|
||||||
await websocket.send(greeting)
|
await websocket.send(greeting)
|
||||||
print(f"> {greeting}")
|
print(f"> {greeting}")
|
||||||
|
|
||||||
start_server = websockets.serve(hello, '0.0.0.0', 8765)
|
start_server = websockets.serve(hello, '0.0.0.0', 32715)
|
||||||
|
|
||||||
asyncio.get_event_loop().run_until_complete(start_server)
|
asyncio.get_event_loop().run_until_complete(start_server)
|
||||||
asyncio.get_event_loop().run_forever()
|
asyncio.get_event_loop().run_forever()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue