B4R Question how to wrap socket reply for websocketcliet

yaniv hanya

Active Member
Licensed User
Hello,

I use the websockt client exaple so connect to web socket and send commands to ESP32 over WWW.

the socket server is not the B4X socket server... i need to use a given one.

the websocket server have only one "send massege" function that return only one String.

the "incoming" function of websocketclient in B4R get's two parameters- a string for functionName and an array.

i found the way to pass the functionName. but the i can't find the corect bytes to send string as array...

i mean- if i need to send a,b,c as three section array, and i can only send it as string from the server- can i use some kind of dilimeters in the string/ Bytes so it will be considered as array?
 

yaniv hanya

Active Member
Licensed User
thanks erel.
How ever, i did manage to find work around and now my websocket B4R client connected to .NET server socket.
so if someone have a similar problem, you can send me private message and i"l send you the work around... (it is not so elegant, so i don't put it here. but working great).
 
Upvote 0
Top