Skip to content

Commit

Permalink
remove unwanted change
Browse files Browse the repository at this point in the history
  • Loading branch information
irvingoujAtDevolution committed Jan 10, 2025
1 parent a87bc3a commit 942d7db
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions webapp/player-project/src/ws-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ const WebSocketProxy = new Proxy(window.WebSocket, {
}
return Reflect.set(target, prop, value);
},
get(target, prop, receiver) {
const value = Reflect.get(target, prop, receiver);
// Bind native methods to the original WebSocket instance
// Websocket send and other method need the `this` to points to the WebSocket instance
if (typeof value === 'function') {
return value.bind(target);
}
return value;
},
});
},
});
Expand Down

0 comments on commit 942d7db

Please sign in to comment.