How to have like button update page for everyone

If you mean to update the like just like FB/Twitter/etc do, you’ll need a connection that allows the server to send updates to connected clients, without the clients requesting anything. This can be done using WebSockets /, but needs a different infrastructure than standard blogs.

An alternative would be to save the like to a database, and polling the like data every few seconds. It’s less fancy, but also less complex.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top