Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

167
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!