I am playing around with a Websocket server on B4J, and a client on B4A using the tutorials that Erel has posted in the past.
I noticed when running functions from Server -> client using RunFunction, the data/arguments are a List. But going the other way using SendEventToServer, its a Map.
Is there a way where I can just send JSON both ways instead? Seems kind of Odd to send Lists one way, and Maps the other.
Unless I am not understanding something, but thats how I currently see it. I have everything working without problems, it would be easier for me to just JSON back and forth.
Thanks.
I noticed when running functions from Server -> client using RunFunction, the data/arguments are a List. But going the other way using SendEventToServer, its a Map.
Is there a way where I can just send JSON both ways instead? Seems kind of Odd to send Lists one way, and Maps the other.
Unless I am not understanding something, but thats how I currently see it. I have everything working without problems, it would be easier for me to just JSON back and forth.
Thanks.