Wednesday, 31 May 2017

Pushing Updates with Socket.io, Express, and Handlebars

I'm trying to reload the page for all connections when a new submission is added to a database. I am using Handlebars, Express and MongoDB. When a user submits, I want it to display for all current connections without them having to refresh. Initial research showed that socket.io may work, but am having trouble getting it to push the update out to all users.

The code: https://github.com/nathanchr/root-tree-app/tree/socket

Thanks in advance.



via Nathan C.

No comments:

Post a Comment