@requestly/requestly-proxy 1.1.7 → 1.1.8

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, flags) {
1000
+ Proxy.prototype._onWebSocketFrame = function (ctx, type, fromServer, data, isBinary) {
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, flags
1018
1018
  if (destWebSocket.readyState === WebSocket.OPEN) {
1019
1019
  switch (type) {
1020
1020
  case "message":
1021
- destWebSocket.send(data, flags);
1021
+ destWebSocket.send(data, { binary: isBinary });
1022
1022
  break;
1023
1023
  case "ping":
1024
1024
  destWebSocket.ping(data, flags, false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@requestly/requestly-proxy",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Proxy that gives superpowers to all the Requestly clients",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {