From the documentation is sounds as if message compression is supported by the JS API. On inspection with the browsers developer tools this seems to be false.
https://www.pubnub.com/docs/sdks/javascript/api-reference/publish-and-subscribe#methods
| sendByPost |
boolean |
Optional |
false |
When true, the SDK uses HTTP POST to publish the messages. The message is sent in the BODY of the request, instead of the query string when HTTP GET is used. Also the messages are compressed thus reducing the size of the messages. Using HTTP POST to publish messages adheres to RESTful API best practices. |
From the documentation is sounds as if message compression is supported by the JS API. On inspection with the browsers developer tools this seems to be false.
https://www.pubnub.com/docs/sdks/javascript/api-reference/publish-and-subscribe#methods