()
| 75 | } |
| 76 | |
| 77 | subscribe() { |
| 78 | if (this.subscribed) { |
| 79 | return; |
| 80 | } |
| 81 | |
| 82 | this.subscriptionId = randomid(); |
| 83 | this.client.push(this.topic, 'subscribe', { id: this.subscriptionId }); |
| 84 | this.client.on(this.topic, this.receive); |
| 85 | } |
| 86 | |
| 87 | unsubscribe() { |
| 88 | this.subscribed = false; |
no test coverage detected