Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
edoceo
· 6y ago · 0 comments
Use websocket in binary mode, pack operations into tiny messages.
Comments
[–]
redka
6y ago
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
[–]
Kiro
6y ago
So there's no reason to use binary commands when using something like socket.io?
[–]
redka
6y ago
not much but shaving off some bytes is good in itself