Answer the question
In order to leave comments, you need to log in
What's the best way to use gzip with websocket in Ionic?
Hello everyone,
I'm getting a big json over websocket and want to compress it with gzip'op on the server side
.
What we managed to find:
1. Pako
nodeca.github.io/pako
(Looks fine, it works. Performance has not been measured yet)
2. Native plugin.
Unfortunately, I did not find native gzip plugins in the repository. There is this one
https://github.com/Apreta/cordova-plugin-zlib
But without documentation. Perhaps it will be possible to build it under Ionic, but I don’t want to waste time
3. Content-encoding / Accept-encoding headers
I’m not sure that this will work everywhere in Ionic
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question