Initial commit

This commit is contained in:
2020-10-01 19:53:08 +02:00
parent dea479a784
commit ace4593b46
82 changed files with 2570 additions and 0 deletions

15
Server/server.py Normal file
View File

@@ -0,0 +1,15 @@
import websockets
import asyncio
async def server(websocket, path):
while (True):
data = await websocket.recv()
print("Message received: ", data)
await websocket.send("Thanks for your message")
start_server = websockets.serve(server, "localhost", 55055)
asyncio.get_event_loop().run_until_complete(start_server)
asyncio.get_event_loop().run_forever()