MCPcopy
hub / github.com/angular/angular / broadcast

Method broadcast

packages/service-worker/worker/src/driver.ts:1335–1340  ·  view source on GitHub ↗
(msg: Object)

Source from the content-addressed store, hash-verified

1333 }
1334
1335 async broadcast(msg: Object): Promise<void> {
1336 const clients = await this.scope.clients.matchAll();
1337 clients.forEach((client) => {
1338 client.postMessage(msg);
1339 });
1340 }
1341
1342 async debugState(): Promise<DebugState> {
1343 return {

Callers 4

handlePushMethod · 0.95
handleClickMethod · 0.95
handleCloseMethod · 0.95

Calls 3

matchAllMethod · 0.45
forEachMethod · 0.45
postMessageMethod · 0.45

Tested by

no test coverage detected