UDP Client Event - OnEcho

The event is raised when Echo receives its response for Diarkis server cluster. UDP client sends echo packet at certain interval automatically to keep the connection with the server.

 

udp.OnEcho += OnEcho;

private void OnEcho(double echoTime, string clientPublicAddr)
{
  // echoTime is the time it took to send and return echo. It is in milliseconds.
  // clientPublicAddr is available if the UDP server enables P2P.
}