Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

182
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda