Added
- Support for PINGs from client to server to detect connection loss (#30) Many thanks to @viktorm77 for contributing the implementation.
async def conn_lost_cb(err):
print(err)
sc = STAN()
await sc.connect("test-cluster", client_id, ping_interval=1, ping_max_out=10, conn_lost_cb=conn_lost_cb)