aiotruenas-client icon indicating copy to clipboard operation
aiotruenas-client copied to clipboard

Handle disconnections gracefully

Open sdwilsh opened this issue 5 years ago • 2 comments

Looks like we need to build some code to handle disconnections from the server and automatically reconnect. https://github.com/aaugustin/websockets/issues/414 has some sample code.

sdwilsh avatar Oct 03 '20 03:10 sdwilsh

An attempt with async-generator https://gist.github.com/filwaline/37309797265079f2ad7fcc47999575b2

filwaline avatar Oct 31 '20 10:10 filwaline

I put some work into how to do this yesterday, and it's hard to do it at our library level, I think. We can make it easier for clients to detect if the connect was closed, however, and re-initialize it.

sdwilsh avatar Jan 05 '21 18:01 sdwilsh