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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.