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

Commit f25b087

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: lib/browser/websocket.ts

+1
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)