client now connects to public server

This commit is contained in:
Lexi / Zoe 2018-11-12 21:47:47 +01:00
parent a7cf851c90
commit 94e5e7f96c
3 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -95,4 +95,5 @@ ENV/
.ropeproject .ropeproject
# -- project specific -- # -- project specific --
_ignore/
screenlog.* screenlog.*

View File

@ -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;

View File

@ -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()