- From: arpitjindal <notifications@github.com>
- Date: Fri, 07 Jan 2022 04:40:16 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 7 January 2022 12:40:29 UTC
Hello! Recently, I have started using ServiceWorker in our project. In this project, we basically like to keep track of one particular client. So, we would like to keep track of all the request/response coming from this particular client in ServiceWorker Fetch function. We managed to get the initial client ID. But now whenever there is a navigation, clientID is null. I found out about replacesClientId variable but it is not being supported by any browser. Is there any alternate way to get the replacesClientId from FetchEvent (or any other method)? I also tried to use > await self.clients.get(event.resultingClientId) but it does not get resolve until its execution ready-flag is not set. Please let me know if there is any way I could keep track of a particular client. Best regards Arpit Jindal -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1623 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1623@github.com>
Received on Friday, 7 January 2022 12:40:29 UTC