MCPcopy
hub / github.com/angular/angular / postMessage

Method postMessage

packages/service-worker/src/low_level.ts:215–226  ·  view source on GitHub ↗
(action: string, payload: Object)

Source from the content-addressed store, hash-verified

213 }
214
215 postMessage(action: string, payload: Object): Promise<void> {
216 return new Promise<void>((resolve) => {
217 this.worker.pipe(take(1)).subscribe((sw) => {
218 sw.postMessage({
219 action,
220 ...payload,
221 });
222
223 resolve();
224 });
225 });
226 }
227
228 postMessageWithOperation(
229 type: string,

Callers 7

onControllerChangeFunction · 0.45
newMacrotaskMethod · 0.45
errorFilenameHandlerFunction · 0.45
CodeMirrorEditorClass · 0.45

Calls 2

subscribeMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected