My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How do you implement newsfeeds with socket.io and express.js ?

Joseph's photo
Joseph
·Nov 29, 2018

I'm trying to implement newsfeeds with Express,MongoDB and Socket.io, I've got the logic between the express route and MongoDB setup, how do I setup an open websocket path so everytime a client hits a post end point,all the followers get the post instead of having to make a new request for new feeds.