You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.
Asmod4n edited this page Sep 15, 2013
·
2 revisions
The Ruby version of the Webmachine HTTP framework has native support for Reel along with end-to-end streaming. In addition, it's lightweight and fast, and will speak HTTP properly so you don't have to!
To use Reel with Webmachine, add the following to your Gemfile:
# master is needed for Reel 0.4.0 supportgem'webmachine',git: 'git://github.com/seancribbs/webmachine-ruby.git'
Then use config.adapter = :Reel when configuring a Webmachine app, e.g:
MyApp=Webmachine::Application.newdo |app|
app.routesdoadd['*'],MyHomeendapp.configuredo |config|
config.ip=MYAPP_IPconfig.port=MYAPP_PORTconfig.adapter=:Reel# Optional: handler for incoming websocketsconfig.adapter_options[:websocket_handler]=procdo |websocket|
# websocket is a Reel::WebSocketwebsocket << "hello, world"endendendMyApp.run