I am working on a web portal where In my scenario there are big size JSON strings (1MB) which are sent by the server. We are using the WebSocket protocol. Obviously, it's taking a long time to load on client's browser.
I have tried Gzipping the JSON at the server end and try to decompress using Javascript. Compression is fine but I get some error while decompressing using JS. I used this library http://jsxgraph.uni-bayreuth.de/wp/2009/09/29/jsxcompressor-zlib-compressed-javascript-code/
Could anyone please suggest if there is another way?
P.S. As I am using WebSocket so I can't rely on browser's decompression.