ws-process 0.3.37 → 0.3.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -725,6 +725,10 @@ function asyncSend(msg) {
725
725
  }
726
726
  }
727
727
 
728
+ if (['requestodata', 'requestsoap'].includes(jsonMSG.action)) {
729
+ jsonMSG.compressAsGzip = true;
730
+ }
731
+
728
732
  console.log('%csending message:', 'color:green', jsonMSG);
729
733
  const wsMSG = JSON.stringify(jsonMSG);
730
734
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-process",
3
- "version": "0.3.37",
3
+ "version": "0.3.38",
4
4
  "description": "Process Management for Web Socket Client",
5
5
  "main": "index.js",
6
6
  "scripts": {