Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

169
Vistas
How can I write a notification inside a client webpage using JS?

I need to send data from my backend to my frontend (sort of a notification system). My backend is a simple Node JS server that works fine and my frontend is a simple web page using webpack and JS. My goal is to send data from my server to my web client. I tried to solve this by using a notification system with Service Workers. Uunfortunately in my service worker 'push' listener, I can not put the notification content in my actual web page, for instance I tried this : enter image description here , but its not working because apparently we can not use 'window' or 'document' object inside a service worker... so I have two questions please : 1. Is there an easier way to send data from a server to client? 2. Using service workers, is there a way to send the data from the service worker to the web client ? Thank you for all your help !

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda