reconnect on losing connection
Currently when the connection is lost an error is logged and that's it.
Instead we'd like the client to start a reconnect-procedure and (once successful) restore all subscriptions.
Detect connection-loss:
- stream has close-status (ie on-close of websocket is triggered)
- PINGRESPs are not returned in time
issues/questions
- is on-close of websocket triggered on node?
- how to treat operations to stream during disconnect?
- reconnect only applicable whenever there was a connection to start with :)
plan
- first detect and log connection loss
- reconnect without restoring subscriptions
- restore all subscriptions (sub-chans handed out continue to be useful)