B4J Question [Server] Passing objects with Websockets back to client

AHilton

Active Member
Licensed User
Longtime User
Any way to pass back to the client a user defined type when dealing with websockets? I've tried a few different things but have run into a roadblock, I guess. I just tried using B4XSerializer to convert a user defined type object to bytes and then add that to the list that gets sent back to the client. On the client end, I reverse the process (the same user defined type on both sides is defined) but end up getting a "argument type mismatch" no matter what I do.

Any ideas?
 
Top