source: trip-planner-front/node_modules/zone.js/fesm2015/zone-patch-socket-io.js@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1'use strict';
2/**
3 * @license Angular v12.0.0-next.0
4 * (c) 2010-2020 Google LLC. https://angular.io/
5 * License: MIT
6 */
7/**
8 * @license
9 * Copyright Google LLC All Rights Reserved.
10 *
11 * Use of this source code is governed by an MIT-style license that can be
12 * found in the LICENSE file at https://angular.io/license
13 */
14Zone.__load_patch('socketio', (global, Zone, api) => {
15 Zone[Zone.__symbol__('socketio')] = function patchSocketIO(io) {
16 // patch io.Socket.prototype event listener related method
17 api.patchEventTarget(global, [io.Socket.prototype], {
18 useG: false,
19 chkDup: false,
20 rt: true,
21 diff: (task, delegate) => {
22 return task.callback === delegate;
23 }
24 });
25 // also patch io.Socket.prototype.on/off/removeListener/removeAllListeners
26 io.Socket.prototype.on = io.Socket.prototype.addEventListener;
27 io.Socket.prototype.off = io.Socket.prototype.removeListener =
28 io.Socket.prototype.removeAllListeners = io.Socket.prototype.removeEventListener;
29 };
30});
Note: See TracBrowser for help on using the repository browser.