I've implemented simple B4J Web Socket Server for ESP. Is it possible to serialize objects (user defined type) instead of string? I want to do something like
Server:
Client:
Server:
B4J:
Type Info(ID As String, Name As String, MyArray() As Byte)
B4J:
Private ws As WebSocket
ws.RunFunction("ScheckPointInf", Array As Object("E00",Info))
Client:
B4R:
Type Info(ID As String, Name As String, MyArray() As Byte)
B4R:
Sub WebSocket_NewMessage (FunctionName As String, Params() As Object)
Select FunctionName
Case "ScheckPointInf"
Dim Inf as info = Parms(1)
Log("Name: ", Inf.Name)
End Select
End Sub