Skip to content

Commit 08896df

Browse files
nsrCodesjoeferner
authored andcommitted
fix: websocket binary frame handling
1 parent d3952ed commit 08896df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ export class Proxy implements IProxy {
12071207
if (destWebSocket.readyState === WebSocket.OPEN) {
12081208
switch (type) {
12091209
case "message":
1210-
destWebSocket.send(data, flags as WebSocketFlags);
1210+
destWebSocket.send(data, {binary: flags as boolean});
12111211
break;
12121212
case "ping":
12131213
destWebSocket.ping(data, flags as boolean);

0 commit comments

Comments
 (0)