marcick Well-Known Member Licensed User Longtime User Dec 10, 2017 #1 Whic is the correct way to behave when there is an open WebSocket connection B4I-B4J server and the user put the App in background ? Same question is for a B4A client when the user press Home or close the App.
Whic is the correct way to behave when there is an open WebSocket connection B4I-B4J server and the user put the App in background ? Same question is for a B4A client when the user press Home or close the App.
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2017 #2 You should close it in Application_Background and connect it again in Application_Active or Application_Foreground. In B4A it is different. You should manage the connection in a service and you don't need to close it yourself. Upvote 0
You should close it in Application_Background and connect it again in Application_Active or Application_Foreground. In B4A it is different. You should manage the connection in a service and you don't need to close it yourself.
marcick Well-Known Member Licensed User Longtime User Dec 11, 2017 #3 Thank you. In B4A the WebSocketHandler is in a class. Isn't it correct ? I think I did it starting from a sample found here in the forum. Upvote 0
Thank you. In B4A the WebSocketHandler is in a class. Isn't it correct ? I think I did it starting from a sample found here in the forum.
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2017 #4 You should initialize the class from Starter service. Upvote 0