websockets TTL & ping pong
mrcatnip
PROOP

a year 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

a year ago

N/A


a year 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.


a year ago

!s


Status changed to Solved brody 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...