Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkTransport.GetCurrentRtt

Switch to Manual
public static int GetCurrentRtt(int hostId, int connectionId, out byte error);

Parameters

hostId Id of udp socket used to.
connectionId Id of connection.
error Possible error.

Description

Return round trip time for connection.