How we can send a notification to multiple subscribers using web-push package of Node.js?
We can loop through for list of subscribers but it won't be scalable for millions of subscribers.
Example:
for(var myKey in subData) {
endp = subData[myKey]['ENDPOINT'];
enckey = subData[myKey]['ENCKEY'];
webPush.sendNotification(endp, 200, enckey, JSON.stringify({
title: 'Test Title',
msg: 'Test Notification',
}));
}