Skip to content

Commit 4d7ba6f

Browse files
committed
fix error introduced from #11
1 parent 18a8498 commit 4d7ba6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)