Skip to content

Commit 410189e

Browse files
nkzawadarrachequesne
authored andcommitted
[fix] remove a workaround for ios (#465)
1 parent 083a139 commit 410189e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/transports/websocket.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,6 @@ WS.prototype.addEventListeners = function () {
139139
};
140140
};
141141

142-
/**
143-
* Override `onData` to use a timer on iOS.
144-
* See: https://gist.github.com/mloughran/2052006
145-
*
146-
* @api private
147-
*/
148-
149-
if ('undefined' !== typeof navigator &&
150-
/iPad|iPhone|iPod/i.test(navigator.userAgent)) {
151-
WS.prototype.onData = function (data) {
152-
var self = this;
153-
setTimeout(function () {
154-
Transport.prototype.onData.call(self, data);
155-
}, 0);
156-
};
157-
}
158-
159142
/**
160143
* Writes data to socket.
161144
*

0 commit comments

Comments
 (0)