Add a note about non-buffering servers for AC::Live

[ci skip]
This commit is contained in:
Aditya Kapoor 2014-10-30 15:36:31 +05:30 committed by Robin Dupret
parent fc8d638549
commit b2ab4512fb
1 changed files with 5 additions and 0 deletions

View File

@ -994,6 +994,11 @@ you would like in a response object. The `ActionController::Live` module allows
you to create a persistent connection with a browser. Using this module, you will you to create a persistent connection with a browser. Using this module, you will
be able to send arbitrary data to the browser at specific points in time. be able to send arbitrary data to the browser at specific points in time.
NOTE: The default Rails server (WEBrick) is a buffering web server and does not
support streaming. In order to use this feature, you'll need to use a non buffering
server like [Puma](http://puma.io), [Rainbows](http://rainbows.bogomips.org)
or [Passenger](https://www.phusionpassenger.com).
#### Incorporating Live Streaming #### Incorporating Live Streaming
Including `ActionController::Live` inside of your controller class will provide Including `ActionController::Live` inside of your controller class will provide