B4J Question How to use b4j_senddata ?

jinyistudio

Well-Known Member
Licensed User
I have see b4j_senddata in the b4j_ws.js. How does it work with srvr.AddWebSocket ? I want to send data(json format) to server side.:(

example : b4j_senddata('{'D1':1,'D2':2}') --> server side, how to programmig ?

B4X:
function b4j_sendData(data) {
    b4j_ws.send(JSON.stringify({type: "data", data: data}));
}
 
Top