Skip to content

Commit ab89342

Browse files
fix: use ES3 syntax
Related: - socketio/socket.io#5417 - ee468e6
1 parent 4b7eca1 commit ab89342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/transports/websocket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ WS.prototype.onClose = function () {
245245

246246
WS.prototype.doClose = function () {
247247
if (typeof this.ws !== 'undefined') {
248-
this.ws.onerror = () => {};
248+
this.ws.onerror = function () {};
249249
this.ws.close();
250250
}
251251
};

0 commit comments

Comments
 (0)