WheelLabs Posted March 15, 2018 Share Posted March 15, 2018 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 Quote Link to comment Share on other sites More sharing options...
Skeptron Posted March 24, 2018 Share Posted March 24, 2018 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. Quote Link to comment Share on other sites More sharing options...
PsichiX Posted March 24, 2018 Share Posted March 24, 2018 pings and notifications, well just updating database - http; streaming with websockets or webrtc Quote Link to comment Share on other sites More sharing options...
caymanbruce Posted March 25, 2018 Share Posted March 25, 2018 i design my own game protocol based on websocket. Quote Link to comment Share on other sites More sharing options...
PsichiX Posted March 25, 2018 Share Posted March 25, 2018 1 hour ago, caymanbruce said: i design my own game protocol based on websocket. so it is websocket ;P Quote Link to comment Share on other sites More sharing options...
Langerz82 Posted April 17, 2018 Share Posted April 17, 2018 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. Quote Link to comment Share on other sites More sharing options...
PsichiX Posted April 17, 2018 Share Posted April 17, 2018 Dunno if WebRTC was mentioned before, but this API should be perfect for super fast data transmission. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.