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

Commit

Permalink
fix(websockets): properly patch websockets on Safari 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar authored and btford committed May 1, 2015
1 parent e5d8c22 commit 1799a20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ Zone.patchViaCapturingAllTheEvents = function () {
// we have to patch the instance since the proto is non-configurable
Zone.patchWebSocket = function() {
var WS = window.WebSocket;
Zone.patchEventTargetMethods(WS.prototype);
window.WebSocket = function(a, b) {
var socket = arguments.length > 1 ? new WS(a, b) : new WS(a);
Zone.patchProperties(socket, ['onclose', 'onerror', 'onmessage', 'onopen']);
Expand Down

0 comments on commit 1799a20

Please sign in to comment.