things to consider when reconnecting a websocket connection
tags: learning networking
content
- as pointed out in websockets, errors can happen anytime during a websocket connection
- to reconnect the websocket, we need to consider:
- how to detect disconnection
- when to detect, how often, when to give up detection
- how to fetch missed message during disconnection
- how to handle out of order messages