What's the best form of Client - Server communication? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What's the best form of Client - Server communication?

I am currently programming a 2D Multiplayer RPG with Unity and working with strings that are sent between client and server and im thinking... Isnt there a better way to communicate between the two parties? If so please tell me your thoughts :)

14th May 2019, 9:36 AM
Raphael D.
4 Answers
+ 4
I guess binary, json and XML are other options.
14th May 2019, 9:53 AM
Sonic
Sonic - avatar
+ 2
Sonic how do you communicate via XML or Json? That sounds kind of interesting
14th May 2019, 10:02 AM
Raphael D.
+ 1
I mean im looking for a way that can be adapted easily to new commands or changes
14th May 2019, 10:03 AM
Raphael D.
+ 1
That's called a protocol and I'm afraid you'll have to create your own or use an existing, e.g. http (message oriented).
14th May 2019, 10:06 AM
Daniel Adam
Daniel Adam - avatar