-
-
Save bradgessler/f2416efdbb1771e983b3 to your computer and use it in GitHub Desktop.
Firehose configuration example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rainbows! do | |
use :EventMachine | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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