Hi,
If I look at https://www.b4x.com/android/forum/threads/websocket-client-library.40221/#content
I notice I would need to have some class called "WebsocketHandler" when I use the WebSocket library.
I already download the latest version but the class WebSocketHandler seems not to exist ?
I understand I would need to to use WebSocketHandler.SendEventToServer to send a message to the server ?
Or is the link not in sync with the latest source-code of the library ?
PS: In general I find the info on websockets (B4A on client and B4J on server) scattered around multiple posts and I find it hard to get a general (up-to-date?) info.
Is there anywhere an up-to-date B4A client and corresponding B4J server that sends data in both directions ?
Thanks
If I look at https://www.b4x.com/android/forum/threads/websocket-client-library.40221/#content
I notice I would need to have some class called "WebsocketHandler" when I use the WebSocket library.
I already download the latest version but the class WebSocketHandler seems not to exist ?
B4X:
Sub btnSend_ClickDim data AsMap
data.Initialize
data.Put("message", EditText1.Text)
wsh.SendEventToServer("Device_Message", data)
End Sub
I understand I would need to to use WebSocketHandler.SendEventToServer to send a message to the server ?
Or is the link not in sync with the latest source-code of the library ?
PS: In general I find the info on websockets (B4A on client and B4J on server) scattered around multiple posts and I find it hard to get a general (up-to-date?) info.
Is there anywhere an up-to-date B4A client and corresponding B4J server that sends data in both directions ?
Thanks
Last edited: