Closed rhonsby closed 3 years ago
@rhonsby just curious, were you able to see if the reconnecting logic fixes anything when the socket gets disconnected (e.g. after the computer goes to sleep and gets reopened)?
@reichert621 I couldn't get the socket to disconnect with a short-ish sleep, so I'm going to try to let it sleep over lunch. I tested it another way that I thought would be similar:
Update: I was able to repro the issue. It looks like this doesn't actually solve that case. Let me try to take a stab at that before merging this in.
Description
When the socket used for managing conversations errors out, we currently only log an error message. This commit logs the error as well to provide more visibility into why it's erroring and attempts to reconnect when it does error.
Issue
https://github.com/papercups-io/papercups/issues/774
Checklist
mix test
mix format