Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Do both websocket connections send the same data, or do you split your data logically between two channels (movement data vs state data)


view as:

I interleave information that becomes redundant (like the position of players, I can handle losing every other packet for a while, interpolating/predicting missing info) but send important data in all channels (like when a rocket is fired, it's just one event that must be seen).

Again, I'm not OP but I did similar things and explained what probably happens with this game.


Legal | privacy