Skip to content

Commit e56efbd

Browse files
authored
Merge pull request #12 from requestly/fix-wss-frame-handler
2 parents 18a8498 + 3cb09d9 commit e56efbd

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dist/lib/proxy/lib/proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ Proxy.prototype._onWebSocketConnection = function (ctx, callback) {
997997
return fn(ctx, callback);
998998
}, callback);
999999
};
1000-
Proxy.prototype._onWebSocketFrame = function (ctx, type, fromServer, data, isBinary) {
1000+
Proxy.prototype._onWebSocketFrame = function (ctx, type, fromServer, data, flags) {
10011001
var self = this;
10021002
async.forEach(this.onWebSocketFrameHandlers.concat(ctx.onWebSocketFrameHandlers), function (fn, callback) {
10031003
return fn(ctx, type, fromServer, data, flags, function (err, newData, newFlags) {
@@ -1018,7 +1018,7 @@ Proxy.prototype._onWebSocketFrame = function (ctx, type, fromServer, data, isBin
10181018
if (destWebSocket.readyState === WebSocket.OPEN) {
10191019
switch (type) {
10201020
case "message":
1021-
destWebSocket.send(data, { binary: isBinary });
1021+
destWebSocket.send(data, { binary: flags });
10221022
break;
10231023
case "ping":
10241024
destWebSocket.ping(data, flags, false);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@requestly/requestly-proxy",
3-
"version": "1.1.8",
3+
"version": "1.1.9",
44
"description": "Proxy that gives superpowers to all the Requestly clients",
55
"main": "dist/index.js",
66
"scripts": {

src/lib/proxy/lib/proxy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ Proxy.prototype._onWebSocketFrame = function (
11891189
type,
11901190
fromServer,
11911191
data,
1192-
isBinary
1192+
flags
11931193
) {
11941194
var self = this;
11951195
async.forEach(
@@ -1221,7 +1221,7 @@ Proxy.prototype._onWebSocketFrame = function (
12211221
if (destWebSocket.readyState === WebSocket.OPEN) {
12221222
switch (type) {
12231223
case "message":
1224-
destWebSocket.send(data, { binary: isBinary });
1224+
destWebSocket.send(data, { binary: flags });
12251225
break;
12261226
case "ping":
12271227
destWebSocket.ping(data, flags, false);

0 commit comments

Comments
 (0)