GetPing
Get the current ping for our user. Note: Pings are not distributed among other members. Your game will have to bundle it inside a packet and distribute to other peers.
Usage
http://localhost:3000
- C#
- C++
- Obj-C
- Java
- JavaScript
- Dart
- Roblox
- GDScript
- Cloud Code
- Raw
_bc.RelayService.GetPing();
_bc->getRelayService()->getPing();
_bc->getRelayService()->getPing();
_bc->getRelayService()->getPing();
_bc.relay.getPing();
int pingTime = _bc.relayService.getPing();
local pingTime = _bc:getRelayService():getPing()
var result = await _bc.relay_service.get_ping()
if result.status == 200:
print("Success")
else:
print("Failed: %s" % result.status_message)
// N/A
// N/A