mrcatnip
PROOP
8 months ago
What's the TTL of a websocket before it's automatically closed from your end? Also, let's say N minutes is the maximum uptime of a inactive websocket, would doing a ping pong at N - 1 minutes intervals be enough?
3 Replies
8 months ago
Should be a maximum of 3 hours, so a ping at 1 minute intervals would be more than enough.
But just as a general rule of thumb, don't assume WebSocket's will never disconnect sooner than that, your code should handle reconnections itself.
8 months ago
!s
Status changed to Solved brody • 9 months ago