logoalt Hacker News

mgaunardtoday at 10:12 AM1 replyview on HN

WebSocket is full of web-tech silliness; you'd be better off doing your own framing.


Replies

mort96today at 10:25 AM

Well, it also has the advantage of providing pretty decent encryption for free through WSS.

But yeah, where that's unnecessary, it's probably just as easy to have a 4-byte length prefix, since TCP handles the checksum and retransmit and everything for you.

show 1 reply