- Home /
what protocol to use for open connection in unity3d?
Hello,
I am new to unity and I have a project that requires an open connection to continuously send packets to the application. When the packets are received I retrieve the data and create objects and motions...
What is the protocol i should use? what are the libraries needed? what are the available options and which one is the best one?
Should i use xmpp or other protocol?
Thanks in advance.
my goal is to make an application, let us say windows form application, that connects to unity and sends data (ex: xml string) to dynamically create objects... does this link helps?!
Well, imagine for a moment you are not using Unity. What system would you use if you were writing your own client and server? I imagine you'd use sockets and invent your own protocol. So, when using Unity, do exactly the same. Xmpp is probably overkill.
Thank you Graham! can we make 2 versions of the application (one for mobile and one for desktop) and still have no problem with the connection and the socket libraries?
Answer by Bilelmnasser · Apr 24, 2019 at 01:10 PM
Hi, there is in my github Working Library of XMPP implementation.