How cloud server keep track of connected clients?

Options
Hello guys,

I was wondering about how the remote server detects a client got disconnected at some point? I assume there is some kind of ping mechanism occurring in PUN every second or so to notify the server that we are still alive? If so, would be nice to know the frequency and the bandwidth this is consuming approximately.

Thanks, and happy new year :).

Don T.

Comments

  • vadim
    Options
    Hi,

    Server considers client as disconnected immediately on LeaveRoom() or Disconnect() call or if no data received from client for about 10 sec.
    In case of no outgoing reliable traffic, clients sends ping every 1 sec. to keep connection.
    Length of ping command is 12 bytes.