()
| 662 | return a || (s = this._events[i] = []), s.push({ id: n, handler: t }), a || this._mode != 3 || this._socket.send(JSON.stringify({ action: "subscribe", name: i })), { name: i, id: n }; |
| 663 | } |
| 664 | _resubscribe() { |
| 665 | if (this._mode == 3) |
| 666 | for (const i in this._events) |
| 667 | this._socket.send(JSON.stringify({ action: "subscribe", name: i })); |
| 668 | } |
| 669 | detach(i) { |
| 670 | if (!i) { |
| 671 | if (this._mode == 3) |