DEV Community

Discussion on: Can you please refresh (Or how we version our Single-Page Application)

Collapse
 
willvincent profile image
Will Vincent • Edited

We have netlify hit a route on our backend that then in turn sends a special message via MQTT to all currently active users, which causes an "An update is ready, please click to load the new version" message to appear at the bottom of their screen.

Works great, super painless thanks to that netlify webhook

Collapse
 
originalexe profile image
Ante Sepic

Nice. Did you already have the backend -> frontend communication set up, or did you add it specifically for the purpose of the update notice?

As mentioned in the article, it seemed overkill to us to add a completely new communication system just for this purpose.