(i, t)
| 656 | } |
| 657 | } |
| 658 | on(i, t) { |
| 659 | const n = this._uid(); |
| 660 | let s = this._events[i]; |
| 661 | const a = !!s; |
| 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) |
no test coverage detected