- From: Jungkee Song <notifications@github.com>
- Date: Wed, 25 Feb 2015 01:45:22 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 25 February 2015 09:45:48 UTC
> What about the case when the sender is not controlled by the service worker? Should the source still be an instance of WindowClient/Client? I think any instantiated `ServiceWorker` object can postMessage to the service worker represented by it regardless of the state of the service worker and the state it being controlled or not. `registration.installing.postMessage()` should also worker. Yes, the `event.source` should be an instance of `WindowClient/Client`. Note that `self.clients.matchAll({ includeUncontrolled: true })` resolves with uncontrolled client in the shape of `WindowClient/Client` as well. --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/609#issuecomment-75932209
Received on Wednesday, 25 February 2015 09:45:48 UTC