- From: Jungkee Song <notifications@github.com>
- Date: Wed, 04 Nov 2015 23:42:31 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Thursday, 5 November 2015 07:42:58 UTC
So, it's time to add `FetchEvent.clientId`, a sync attribute's getter, and an API to get a `Client` object by id. How about: ```js onfetch = e => { clients.getClient(e.clientId).then(c => { c.postMessage("to the request's client."); }); }; ``` Open to another name for `.getClient(id)` method. @jakearchibald could you give more info about "race conditions to sort in terms of onmessage listeners"? Is it a separate issue or directly related to defining these attribute/method? --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/723#issuecomment-153978848
Received on Thursday, 5 November 2015 07:42:58 UTC