开发者

Rails 3: Show Real-Time Data to User from Node.js/MongoDB

开发者 https://www.devze.com 2023-02-22 18:00 出处:网络
I have a Rails web app that shows data to user开发者_StackOverflow社区, however, that data is not being shown in real-time even though a node.js server is adding the data in real-time to a cloud datab

I have a Rails web app that shows data to user开发者_StackOverflow社区, however, that data is not being shown in real-time even though a node.js server is adding the data in real-time to a cloud database that the Rails app has access.

How can I show the data in Rails, from the database, as soon as it arrives?

Thanks


How can I show the data in Rails, from the database, as soon as it arrives?

How about doing it the other way: as soon as your data arrives and are stored in DB, you can send them to clients through socket.io established connection for example.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号