websocket overhead
joeyh at
Does sending a message to a websocket really use 250 bytes of bandwidth for websocket stuff? Seems to in my tests..
Annoying ... I've relentlessly whittled my protocol down to 75 byte packets from 170+ using some fairly serious hackery. And now all this additional overhead!
Christopher Allan Webber likes this.
Wireshark says yes.. A 183 byte websocket frame contains 95 bytes or so of data. And then there are some 86 byte TCP ACKs..
Really annoying thing is, I'm only using http because of port blocking. We can tunnel anything over http websockets, which makes port blocking irrelevant, at a cost of many extra bytes. And of course that reduces pressure for ISPs to not block ports. Progress.
Mike Linksvayer, Christopher Allan Webber likes this.
I guess if I really care about BW, I'll make it try a non-http connection and fall back to http + websockets..
clacke@libranet.de ❌ likes this.