Sign in to follow this  
WheelLabs

What do you use for network protocol?

Recommended Posts

I recently started development for web. Unfortunately I came from C++ world, as I already mentioned in the topic about our game.

I would like to know, what do experienced web developers use to implement network protocol?

Especially I am interested in real time multiplayer games, when latency should be minimized and message size is critical.

I know a bit about Google protocol buffers and Apache thrift. But at the end I reinvented the wheel. Enjoy some C++ bullshit, if you want: https://github.com/misanthrop/binary-wheel

Share this post


Link to post
Share on other sites

To me websockets are very fine. And my game is real-time, competitive multiplayer (https://www.nemroth.com). Anything more complicated should be justified by severe requirements, otherwise I think you're wasting your time.

Share this post


Link to post
Share on other sites

Dont expect to run FPS's with websockets, but otherwise it handles fine for real-time click movement. 

My engine has sometimes heavy packet loads entering a new map for instance so what I do is pack the messages send them at an interval, and use the client to break up the messages and process a limited amount at a time with a very short delay.

It also can compress the very large packets but I think its a bit overkill.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.