(msg: MsgAny & {action: string}, from: Client)
| 398 | } |
| 399 | |
| 400 | private async handleMessage(msg: MsgAny & {action: string}, from: Client): Promise<void> { |
| 401 | if (isMsgCheckForUpdates(msg)) { |
| 402 | const action = this.checkForUpdate(); |
| 403 | await this.completeOperation(from, action, msg.nonce); |
| 404 | } else if (isMsgActivateUpdate(msg)) { |
| 405 | const action = this.updateClient(from); |
| 406 | await this.completeOperation(from, action, msg.nonce); |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | private async handlePush(data: any): Promise<void> { |
| 411 | await this.broadcast({ |
no test coverage detected