websockets TTL & ping pong
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?

Solved

3 Replies

mrcatnip
PROOP

8 months ago

N/A


brody
EMPLOYEE

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.


brody
EMPLOYEE

8 months ago

!s


Status changed to Solved brody 8 months ago


Loading...