[go: up one dir, main page]

Skip to content

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:

  1. stream has close-status (ie on-close of websocket is triggered)
  2. 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

  1. first detect and log connection loss
  2. reconnect without restoring subscriptions
  3. restore all subscriptions (sub-chans handed out continue to be useful)