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.
- package/index.js +4 -0
- 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
|
|