MCPcopy
hub / github.com/angular/angular / handleMessage

Method handleMessage

packages/service-worker/worker/src/driver.ts:400–408  ·  view source on GitHub ↗
(msg: MsgAny & {action: string}, from: Client)

Source from the content-addressed store, hash-verified

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({

Callers 2

onMessageMethod · 0.95

Calls 5

checkForUpdateMethod · 0.95
completeOperationMethod · 0.95
updateClientMethod · 0.95
isMsgCheckForUpdatesFunction · 0.90
isMsgActivateUpdateFunction · 0.90

Tested by

no test coverage detected