Rails 3: Show Real-Time Data to User from Node.js/MongoDB
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.
精彩评论