- Home /
 
What's the best way to communicate with server in real time sending and recieving string data ???
Hello fellow Unity developers I am starting an real time "word detecting" game and need a way to communicate with server in real time sending and receiving mostly string data maybe some int and bool too what is the best solution for this ? where should I start my R&D
Answer by Tecnophobe · Apr 09, 2019 at 06:32 PM
Unity has a HTTP module you'll probably want to use. As for server technology, I'd recommend looking into an Express framework if you're a Javascript fanboy like me, but C# also has many server development options such as ASP.NET.
Good luck on your search!
Hi @Tecnophobe Thanks for the reply don't you think HTTP module is slow for a real time connection ?
That depends on your type of content you want to communicate to the clients. I think for many use cases a HTTP request is perfectly fine. Otherwise, you might want to look into "sockets", which is used by many different games to facilitate real time online interactions.
Thanks @Technophobe. But just one update. If you really want to have the backend as javascript then i would suggest use typescript with the deno runtime. Its more secure and faster. If you are not too stringent on going on js then PLEASE use Rust Rocket. No, they didn't pay me to say this. Its really fast. It uses only ONE $$anonymous$$EGABYTE (approx.) for handling normie traffice swiftly. It (kinda) has a steep learning curve but hell, it is worth it
Your answer
 
             Follow this Question
Related Questions
How do i connect to a remote Asset server Host? 2 Answers
Why I can't connect to server on my vps 2 Answers
MODERATORS to reject all-bold questions 0 Answers
cant connect to server 1 Answer