Dear All,
For reasons that I´ll skip explaining here (look here https://www.b4x.com/android/forum/threads/webview-continuously-receiving-data.95551/#post-603680 if you want the background) I need to set up a websocket server that I can communicate with on my intranet, simply sending frames to it that will processed.
So I´m trying to create a simple setup where I send a message every 3 seconds, and then I was hoping to find out how to manipulate it further.
But I get an error from the server side:
Is anybody able to see what I´m doing wrong?
Thanks in advance, project attached.
PS: No, it won´t work to send this via UDP instead; they´re being sent from within a javascript.
For reasons that I´ll skip explaining here (look here https://www.b4x.com/android/forum/threads/webview-continuously-receiving-data.95551/#post-603680 if you want the background) I need to set up a websocket server that I can communicate with on my intranet, simply sending frames to it that will processed.
So I´m trying to create a simple setup where I send a message every 3 seconds, and then I was hoping to find out how to manipulate it further.
But I get an error from the server side:
B4X:
java.lang.NullPointerException
at anywheresoftware.b4j.object.WebSocketModule$Adapter.onWebSocketText(WebSocketModule.java:112)
Is anybody able to see what I´m doing wrong?
Thanks in advance, project attached.
PS: No, it won´t work to send this via UDP instead; they´re being sent from within a javascript.
Attachments
Last edited: