1 self.onmessage = function(e) {
2 var port = e.data.port;
8 return self.clients.matchAll().then(function(clients) {
9 clients.forEach(function(client) {
10 message.push(client.id);
16 return self.clients.matchAll().then(function(clients) {
17 clients.forEach(function(client) {
18 message.push(client.id);
23 // Send an array containing ids of clients from 1st and 2nd matchAll()
24 port.postMessage(message);