feat: perform websocket deployment test

This commit is contained in:
2021-07-01 00:17:00 -04:00
parent de6ab1e094
commit 086e819bfb
3 changed files with 50 additions and 0 deletions

13
__init__.py Normal file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env python
import asyncio
import websockets
async def echo(websocket, path):
async for message in websocket:
await websocket.send(message)
asyncio.get_event_loop().run_until_complete(
websockets.serve(echo, 'tetris-clone.azurewebsites.net', 5000))
print("starting websocket...")
asyncio.get_event_loop().run_forever()