This method sends a message to the service worker and waits for a response. It resolves when the service worker responds with a message that contains the same messageId as sent.
messageId
The message to send to the service worker.
This method sends a message to the service worker and waits for a response. It resolves when the service worker responds with a message that contains the same
messageId
as sent.