B4J Question Web socket server, user type serialization

Mostez

Well-Known Member
Licensed User
Longtime User
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:
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
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…