yeah, you already update the counter when there’s a socket message update, just send a notification using https://pushjs.org or something which makes it easier
i suppose, but those aren't really real push notifications, you need the site open
you only need like a service worker for that tho
here’s a demo of it: https://medium.com/@a7ul/beginners-guide-to-web-push-notifications-using-service-workers-cb3474a17679