Eme Fibonacci Well-Known Member Licensed User Longtime User Apr 4, 2017 #1 Please, See: https://www.b4x.com/android/forum/threads/websocket-client-library.40221/ This is really cool. I'm trying a mini game in real time. What is the correct way to identify devices on the server?
Please, See: https://www.b4x.com/android/forum/threads/websocket-client-library.40221/ This is really cool. I'm trying a mini game in real time. What is the correct way to identify devices on the server?
Erel B4X founder Staff member Licensed User Longtime User Apr 4, 2017 #2 Check this example: Custom WebSocket Based Push Framework You can send an event to the server with the client id. Upvote 0
Check this example: Custom WebSocket Based Push Framework You can send an event to the server with the client id.
Eme Fibonacci Well-Known Member Licensed User Longtime User Apr 4, 2017 #3 Erel said: Check this example: Custom WebSocket Based Push Framework You can send an event to the server with the client id. Click to expand... We always talk about this but we have to say. @Erel, your work is very good. Upvote 0
Erel said: Check this example: Custom WebSocket Based Push Framework You can send an event to the server with the client id. Click to expand... We always talk about this but we have to say. @Erel, your work is very good.
Eme Fibonacci Well-Known Member Licensed User Longtime User Apr 4, 2017 #4 Does each call to the server create a new instance? How can different devices share a variable? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 5, 2017 #5 Each connection is managed by a different instance of the WebSocket handler. Public global variables from code modules can be shared. Though you need to be careful as each handler uses a different thread. It is worth learning the custom push framework example. Upvote 0
Each connection is managed by a different instance of the WebSocket handler. Public global variables from code modules can be shared. Though you need to be careful as each handler uses a different thread. It is worth learning the custom push framework example.