Trying to setup a heartbeat to keep the Notification websocket listener app that I am developing from crashing...
I am subscribing for session events and processing them in python just after time the app will fail with the above message.
I wonder what is the best way to do this... platform.refresh?
should I re-recreate the subscription on timeout vs sending a ping?
heartbeat_interval = 30 # in seconds async def heartbeat(platform, interval): while True: try: platform.refresh() except ConnectionClosed: break await asyncio.sleep(interval)