How to get an users's ping in smartfox?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

How to get an users's ping in smartfox?

Post by rjgtav »

Hi guys. Is there a smart fox function that allows the user to receive his ping?

I'm using as 2.0
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Your question is not very clear to me, anyways the API expose a method called roundTripBench() which "pings" the server and measures the lag time (client to server and back)
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Post by rjgtav »

thanks Lapo. that's exactly what i was looking for
-Fantastic-
Posts: 9
Joined: 01 May 2010, 00:34
Location: itsNONEOFURBISSOKAY AV

Post by -Fantastic- »

Lapo wrote:Your question is not very clear to me, anyways the API expose a method called roundTripBench() which "pings" the server and measures the lag time (client to server and back)
How would you write this done as a text?
Stick Figure Fighting Maker

Dennis Los Tejada
Post Reply