Skip to content

Instantly share code, notes, and snippets.

@bradgessler bradgessler/consumer.ru Secret
Last active Dec 27, 2015

Embed
What would you like to do?
Firehose configuration example.
require 'faye/websocket'
Faye::WebSocket.load_adapter('rainbows')
require 'firehose'
consumer = Firehose::Rack::Consumer.new do |app|
app.http_long_poll.timeout = 20
end
run consumer
Rainbows! do
use :EventMachine
end
# Run in verbose debug mode
LOG_LEVEL=debug bundle exec rainbows -p 7474 -c rainbows.conf -E production consumer.ru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.