Which sort of defeats the data size throughput measurement; you should disable this option when creating a new ws client conneciton.
Or generate packets that don't compress to nothing... maybe build them with randomness... hard to gauge real world data and how much it would compress, but it would be somewhere between maximal (all the same byte) and minimal (math.random() for instance)
the default option for ws is 'per-message-deflate' this makes the packets that are 1024 bytes of lots of zeros only 16 bytes
b
\030\005\243
\024\214T\000\000\000\000\377\377\000Which sort of defeats the data size throughput measurement; you should disable this option when creating a new ws client conneciton. Or generate packets that don't compress to nothing... maybe build them with randomness... hard to gauge real world data and how much it would compress, but it would be somewhere between maximal (all the same byte) and minimal (math.random() for instance)