SendMessage not String?

All Union Platform questions, comments, feature requests, and bug reports.

SendMessage not String?

Postby paala » Thu 09 May 2013 00:42

Hello,
Can we send a message(server to clients and clinets to server) not string? Like int...
From the docs:
"
sendMessage

void sendMessage(java.util.Set<Client> clients,
java.lang.String message,
java.lang.String... args)
"

Is there a way to make arg not string but int.

Forcing to use string makes huge bandwidth waste.
I have a game in witch the x and y of all players need to be sent 30 times per second.
I send a message like("message_name",<arg_a_string>"id1,x1,y1,id2,x2,y2.....")
It will be much better if a am able to send a message like (""message_name"", arg1:int=id1,arg2:int=x1,arg3:int=y2,arg4:int=id2)
Playerio and Smartfox server can do that.
How can I save bandwidth with UnionPlatform?
Thanks.
paala
 
Posts: 13
Joined: Mon 01 Apr 2013 03:40

Return to Union Platform

Online

Users browsing this forum: No registered users and 4 guests