Skip to content

Commit f25b087

Browse files
mtsmfmmhevery
authored andcommitted
fix(WebSocket patch): keep WebSocket constants
Closes angular#267
1 parent aeeb05c commit f25b087

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/browser/websocket.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ export function apply(_global: any) {
3030

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

0 commit comments

Comments
 (0)