@requestly/requestly-proxy 1.1.8 → 1.1.9
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.
|
@@ -997,7 +997,7 @@ Proxy.prototype._onWebSocketConnection = function (ctx, callback) {
|
|
|
997
997
|
return fn(ctx, callback);
|
|
998
998
|
}, callback);
|
|
999
999
|
};
|
|
1000
|
-
Proxy.prototype._onWebSocketFrame = function (ctx, type, fromServer, data,
|
|
1000
|
+
Proxy.prototype._onWebSocketFrame = function (ctx, type, fromServer, data, flags) {
|
|
1001
1001
|
var self = this;
|
|
1002
1002
|
async.forEach(this.onWebSocketFrameHandlers.concat(ctx.onWebSocketFrameHandlers), function (fn, callback) {
|
|
1003
1003
|
return fn(ctx, type, fromServer, data, flags, function (err, newData, newFlags) {
|
|
@@ -1018,7 +1018,7 @@ Proxy.prototype._onWebSocketFrame = function (ctx, type, fromServer, data, isBin
|
|
|
1018
1018
|
if (destWebSocket.readyState === WebSocket.OPEN) {
|
|
1019
1019
|
switch (type) {
|
|
1020
1020
|
case "message":
|
|
1021
|
-
destWebSocket.send(data, { binary:
|
|
1021
|
+
destWebSocket.send(data, { binary: flags });
|
|
1022
1022
|
break;
|
|
1023
1023
|
case "ping":
|
|
1024
1024
|
destWebSocket.ping(data, flags, false);
|