DEV Community 👩‍💻👨‍💻

Discussion on: I need to add the notification feature in my Web App like that of Facebook using NODE JS and MONGO DB. How should I start?

Collapse
 
arjenpostma profile image
Arjen Postma

There are probably a whole different bunch of solutions for this. The easiest is probably a piece of javascript that calls your backend every X seconds to see if there is anything new.

Collapse
 
said96dev profile image
Saeed Author

you mean like setInterval Method ?

Collapse
 
jzombie profile image
jzombie

I'd personally use a library like socket.io.