(opts: BroadcastOptions, rooms: Room[])
| 528 | } |
| 529 | |
| 530 | override async delSockets(opts: BroadcastOptions, rooms: Room[]) { |
| 531 | const onlyLocal = opts.flags?.local; |
| 532 | |
| 533 | if (!onlyLocal) { |
| 534 | try { |
| 535 | await this.publishAndReturnOffset({ |
| 536 | type: MessageType.SOCKETS_LEAVE, |
| 537 | data: { |
| 538 | opts: encodeOptions(opts), |
| 539 | rooms, |
| 540 | }, |
| 541 | }); |
| 542 | } catch (e) { |
| 543 | debug("[%s] error while publishing message: %s", this.uid, e.message); |
| 544 | } |
| 545 | } |
| 546 | |
| 547 | super.delSockets(opts, rooms); |
| 548 | } |
| 549 | |
| 550 | override async disconnectSockets(opts: BroadcastOptions, close: boolean) { |
| 551 | const onlyLocal = opts.flags?.local; |
nothing calls this directly
no test coverage detected