# Real-time events with WebSockets and fallbacks?

**URL:** <https://www.ruby-forum.com/t/real-time-events-with-websockets-and-fallbacks/228093>\
**Category:** Rails\
**Created:** [April 9, 2013, 10:50am UTC](https://www.ruby-forum.com/t/real-time-events-with-websockets-and-fallbacks/228093 "2013-04-09T10:50:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johan-vm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c77e96/32.png) [@johan-vm](https://www.ruby-forum.com/u/johan-vm)\
**Post date:** [April 9, 2013, 10:50am UTC](https://www.ruby-forum.com/t/real-time-events-with-websockets-and-fallbacks/228093/1 "2013-04-09T10:50:50Z")

</div>

Does Rails have anything that supports real-time events and  
communication  
with WebSockets and gracefully fallbacks to other techniques if  
WebSockets  
are not supported?

I would like the possibility to pub/sub events and messages for live  
chats  
and real time notifications.

---

<div class="post-metadata">

**Author:** ![johan-vm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c77e96/32.png) [@johan-vm](https://www.ruby-forum.com/u/johan-vm)\
**Post date:** [April 9, 2013, 11:51am UTC](https://www.ruby-forum.com/t/real-time-events-with-websockets-and-fallbacks/228093/2 "2013-04-09T11:51:02Z")

</div>

I think this is about as close as you are going to get.

[http://danknox.github.io/websocket-rails/](http://danknox.github.io/websocket-rails/)

There is nothing built into rails for this as far as I know.

---

<div class="post-metadata">

**Author:** ![johan-vm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c77e96/32.png) [@johan-vm](https://www.ruby-forum.com/u/johan-vm)\
**Post date:** [April 10, 2013, 7:17am UTC](https://www.ruby-forum.com/t/real-time-events-with-websockets-and-fallbacks/228093/3 "2013-04-10T07:17:28Z")

</div>

If you’re consider using Rails 4. A new feature comes out called  
ActionController::Live.

[http://blog.remarkablelabs.com/2012/12/live-streaming-rails-4-countdown-to-2013](http://blog.remarkablelabs.com/2012/12/live-streaming-rails-4-countdown-to-2013)

2013 4 9 ȭ 5 49 34 UTC+9, Johan V. :

---

<div class="post-metadata">

**Author:** ![johan-vm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c77e96/32.png) [@johan-vm](https://www.ruby-forum.com/u/johan-vm)\
**Post date:** [April 10, 2013, 7:31am UTC](https://www.ruby-forum.com/t/real-time-events-with-websockets-and-fallbacks/228093/4 "2013-04-10T07:31:30Z")

</div>

Plug use the redis as a messaging system

2013 4 10 2 15 37 UTC+9, 輺 :
