Legacy Documentation: Version 5.1
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 function GetCurrentRtt(hostId: int, connectionId: int, out error: byte): int;

Parameters

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

Description

Return round trip time for connection.