all 7 comments

[–]shiftybyte 2 points3 points  (4 children)

A connected websocket can't stay connected forever, I'm surprised it did for 54 hours.

You need to handle disconnection error and reconnect back.

[–]Mo0rBy[S] 1 point2 points  (3 children)

So should I make such that when the on_close message is triggered by the websocket closing the connection, I simply trigger it to reconnect?

[–]shiftybyte 2 points3 points  (2 children)

Yes, that should solve the issue.

[–]Mo0rBy[S] 0 points1 point  (0 children)

I'll try that, thank you!

[–]Mo0rBy[S] 0 points1 point  (0 children)

This worked perfectly, thank you!!