Prevent websocket from disconnecting
This commit is contained in:
parent
fbcd32988e
commit
88cdf6ed3d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue