openmrs-esm-core

O3 Framework / messageOmrsServiceWorker

Function: messageOmrsServiceWorker()

messageOmrsServiceWorker(message): Promise<MessageServiceWorkerResult<any>>

Defined in: packages/framework/esm-offline/src/service-worker-messaging.ts:11

Sends the specified message to the application’s service worker.

Parameters

message

KnownOmrsServiceWorkerMessages

The message to be sent.

Returns

Promise<MessageServiceWorkerResult<any>>

A promise which completes when the message has been successfully processed by the Service Worker.