Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix(WebSocket patch): keep WebSocket constants
Browse files Browse the repository at this point in the history
Closes #267
  • Loading branch information
mtsmfm authored and mhevery committed Mar 21, 2016
1 parent aeeb05c commit f25b087
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/browser/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ export function apply(_global: any) {

return proxySocket;
};
(<any>global).WebSocket.prototype = Object.create(WS.prototype, {constructor:{value: WebSocket}});
}

0 comments on commit f25b087

Please sign in to comment.