MCPcopy Index your code
hub / github.com/angular/angular / sendMessage

Function sendMessage

packages/service-worker/test/comm_spec.ts:319–320  ·  view source on GitHub ↗
(type: string, message: string)

Source from the content-addressed store, hash-verified

317 describe('messages', () => {
318 it('receives push messages', () => {
319 const sendMessage = (type: string, message: string) =>
320 mock.sendMessage({type, data: {message}});
321
322 const receivedMessages: string[] = [];
323 push.messages.subscribe((msg: any) => receivedMessages.push(msg.message));

Callers 1

comm_spec.tsFile · 0.85

Calls 1

sendMessageMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…