Hi.
i m using this
https://www.b4x.com/android/forum/threads/websocket-client-library.40221/
to make a game server to my real time game, for now when i connect to the server i send phone infos, like phone id, android id etc....
i need to know if this websocket have a id info on the server, because i go make a routine check and if the user log out of the game i need remove this player from the map.
but how to know what player (device) have disconnected?
Have a way to put a log on this server example?
for example, i connect now with my phone, the server make log conected user = 1
now i connect with my table, the server make log connected user = 2
now i disconect my phone , game server show disconected user = 1
how can i make this logs? its possible?
on the server sample show only disconnected
dont show what device as disconected
thx
i m using this
https://www.b4x.com/android/forum/threads/websocket-client-library.40221/
to make a game server to my real time game, for now when i connect to the server i send phone infos, like phone id, android id etc....
i need to know if this websocket have a id info on the server, because i go make a routine check and if the user log out of the game i need remove this player from the map.
but how to know what player (device) have disconnected?
Have a way to put a log on this server example?
for example, i connect now with my phone, the server make log conected user = 1
now i connect with my table, the server make log connected user = 2
now i disconect my phone , game server show disconected user = 1
how can i make this logs? its possible?
on the server sample show only disconnected
B4X:
Private Sub WebSocket_Disconnected
timer1.Enabled = False
Log("disconnected")
End Sub
thx