0

I follow this sample code to push notification to browser, I follow the instructions and run the app using node server.js and I open the browser and run localhost:8000 and change text in example.xml and save it then the text pushed to browser (appear on screen browser).

But I still don't get it to implement to another app server, what I mean, for example I have a app using ruby on rails then I run the server on localhost:3000.

So now I have 2 running servers, first node.js app on localhost:8000 and second one my rails app on localhost:3000.

So how to pass notification from my node.js app to my rails app ?

1 Answer 1

1

My suggestion is to use Redis or similar message queue for inter process communication.

Rails Push to Redis Queue. http://jimneath.org/2011/03/24/using-redis-with-ruby-on-rails.html

Node Reads off Redis queue https://github.com/mranney/node_redis

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.