Prevent websocket from disconnecting

This commit is contained in:
oobabooga 2023-05-02 19:03:19 -03:00
parent fbcd32988e
commit 88cdf6ed3d

View file

@ -56,7 +56,7 @@ async def _handle_connection(websocket, path):
async def _run(host: str, port: int):
async with serve(_handle_connection, host, port):
async with serve(_handle_connection, host, port, ping_interval=None):
await asyncio.Future() # run forever