Hi,
I have android app and i want to send custom type to the b4j server, I use B4XSerializator to convert the custom type to bytes and then i use the following websocket method :
WebSocket1.SendBinary(data)
to send it to the b4j server and for receiving the binary data from the b4j server side i use the following event :
Sub WebSocket1_BinaryMessage (Data() As Byte)
Log("Binary message received.")
'work with Data.
End Sub
the question here how can i receive the binary data in the b4j server side and how can i send back the binary data from the b4j sever to the android app.
Note: I want to mention that i use AddWebSocket method and WebSocket class in the b4j server.
Thank you.