Prevent websocket disconnection on the client side

This commit is contained in:
oobabooga 2023-05-03 20:44:30 -03:00
parent 4bf7253ec5
commit 0a48b29cd8

View File

@ -39,7 +39,7 @@ async def run(context):
'stopping_strings': []
}
async with websockets.connect(URI) as websocket:
async with websockets.connect(URI, ping_interval=None) as websocket:
await websocket.send(json.dumps(request))
yield context # Remove this if you just want to see the reply