我一直在考虑如何使用nodejs / mongodb创建一个天气实时Web应用程序。 我想在每次添加新文档时显示来自数据库的天气数据,我应该使用socket.io还是别的什么?
答案 0 :(得分:1)
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.