How to detect client connection from server
Posted: 22 Jun 2011, 10:06
Hi All,
Currently, I catch the message ( userLost, userExit, ..) from server to check whether user connection lost but It didn't work as I wish.
example, when the user unplug the network cable, I want the server could detect its event and fire it through handleInternalEvent ( or something like that) (like the way player.io do).
I just want someone who could confirm me whether I could do it. or I should send a message frequently ( eg. a message for every 10s).
Thanks.
Currently, I catch the message ( userLost, userExit, ..) from server to check whether user connection lost but It didn't work as I wish.
example, when the user unplug the network cable, I want the server could detect its event and fire it through handleInternalEvent ( or something like that) (like the way player.io do).
I just want someone who could confirm me whether I could do it. or I should send a message frequently ( eg. a message for every 10s).
Thanks.