Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Use websocket in binary mode, pack operations into tiny messages.


actually binary websockets won't do in this case since the underlying protocol is still TCP with automatic retransmission mechanism which kills performance for very fast-paced games. You have to use WebRTC in that case


So there's no reason to use binary commands when using something like socket.io?


not much but shaving off some bytes is good in itself




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: