rtcstats icon indicating copy to clipboard operation
rtcstats copied to clipboard

add message compression

Open fippo opened this issue 8 years ago • 5 comments

from #18: lets also compress this, either using lzstring or a using a custom name mapping. Most likely lzstring which adds ~4kb download is the best solution.

fippo avatar Mar 08 '16 16:03 fippo

1.6Kb gzipped https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.4.4/lz-string.min.js

There is a websocket deflate extension. If we figure out how to enable it maybe we can get that with 0 effort and 0 extra KB and dependencies.

ggarber avatar Mar 08 '16 18:03 ggarber

Sec-WebSocket-Extensions:permessage-deflate

-- already on? I had wondered because the actual traffic measured in wireshark was way lower than I expected when I looked. How did you actually measure, looking at the frames or with wireshark?

fippo avatar Mar 08 '16 19:03 fippo

i think we resolved this, did we?

fippo avatar Mar 23 '16 10:03 fippo

I thin we still didn't add lzstring, right? But feel free to close it and I will create another if needed later.

ggarber avatar Mar 23 '16 10:03 ggarber

https://github.com/nodeca/pako -- we could use this

fippo avatar Apr 11 '17 17:04 fippo