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

Commit 1799a20

Browse files
IgorMinarbtford
authored andcommitted
fix(websockets): properly patch websockets on Safari 7.1
1 parent e5d8c22 commit 1799a20

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

zone.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ Zone.patchViaCapturingAllTheEvents = function () {
478478
// we have to patch the instance since the proto is non-configurable
479479
Zone.patchWebSocket = function() {
480480
var WS = window.WebSocket;
481+
Zone.patchEventTargetMethods(WS.prototype);
481482
window.WebSocket = function(a, b) {
482483
var socket = arguments.length > 1 ? new WS(a, b) : new WS(a);
483484
Zone.patchProperties(socket, ['onclose', 'onerror', 'onmessage', 'onopen']);

0 commit comments

Comments
 (0)