spatiebot / ab-client

A hybrid nodejs and browser client for airmash
MIT License
8 stars 5 forks source link

Preventing spam with CLIENT_PACKETS.KEY #28

Closed wight-airmash closed 4 years ago

wight-airmash commented 4 years ago

Depending on the keyboard setting, the client can create many repeated (and not necessary) KEY packets, which causes the server to broadcast many PLAYER_UPDATE packets. In fact, it's enough to send only one KEY packet after key status update.

Thanks xplay (@TakenOrNot) for pointing out the issue.