Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/socket.io/dist/parent-namespace.js

    r59329aa re29cc2e  
    1212     */
    1313    _initAdapter() {
    14         /* no-op */
     14        const broadcast = (packet, opts) => {
     15            this.children.forEach((nsp) => {
     16                nsp.adapter.broadcast(packet, opts);
     17            });
     18        };
     19        // @ts-ignore FIXME is there a way to declare an inner class in TypeScript?
     20        this.adapter = { broadcast };
    1521    }
    1622    emit(ev, ...args) {
    1723        this.children.forEach((nsp) => {
    18             nsp._rooms = this._rooms;
    19             nsp._flags = this._flags;
    2024            nsp.emit(ev, ...args);
    2125        });
    22         this._rooms.clear();
    23         this._flags = {};
    2426        return true;
    2527    }
Note: See TracChangeset for help on using the changeset viewer.