Prevent websocket disconnection on the client side
This commit is contained in:
parent
4bf7253ec5
commit
0a48b29cd8
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ async def run(context):
|
||||||
'stopping_strings': []
|
'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))
|
await websocket.send(json.dumps(request))
|
||||||
|
|
||||||
yield context # Remove this if you just want to see the reply
|
yield context # Remove this if you just want to see the reply
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue