Search code examples
node.jsmongodbwebsocketsocket.ioreal-time

Displaying real time data from Mongo database


I've been thinking about how to make a weather real-time web application using nodejs/mongodb. I want to display weather data from database every time a new document is added, should I use socket.io or something else ?


Solution

  • you can use socket.io for that,
    as soon as data get inserted you will get a callback and through socket listner you can show or send to client side.