3

Is there any gem, anything I can use to push notifications from server to the web application in a Rails App?

This means not having to call an ajax request from time to time.

:: UPDATE :: Forgot to mention one important requirement which is that I'm using Rails 3.2

4
  • Something like Rails 4 streaming? Commented Jan 2, 2014 at 18:28
  • Sorry for the lack of info, but I'm using Rails 3.2. I'll update my question Commented Jan 3, 2014 at 14:35
  • More or less. Websockets and streaming are still somehow confusing for me. Streaming seems to be changed quite a lot in version 4 of rails, for better. I have to spend some time on it. As this is not a priority task for me now I'm re-evaluating this in a couple of weeks, for the time being I would like to gather some choices to consider by then. Commented Jan 16, 2014 at 9:58
  • But now you know to which direction you are able to see?))) Commented Jan 23, 2014 at 11:32

2 Answers 2

1

You can easily do this with Faye gem in rails. There is a great railscast on this. Faye

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

Comments

1

You can use websockets for ruby to establish the client-server communication. For example use the websocket gem for it.

Also, you can read this topic.

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.