- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/socket.io/dist/parent-namespace.js
r59329aa re29cc2e 12 12 */ 13 13 _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 }; 15 21 } 16 22 emit(ev, ...args) { 17 23 this.children.forEach((nsp) => { 18 nsp._rooms = this._rooms;19 nsp._flags = this._flags;20 24 nsp.emit(ev, ...args); 21 25 }); 22 this._rooms.clear();23 this._flags = {};24 26 return true; 25 27 }
Note:
See TracChangeset
for help on using the changeset viewer.