mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Prevent websocket from disconnecting
This commit is contained in:
parent
fbcd32988e
commit
88cdf6ed3d
@ -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…
Reference in New Issue
Block a user