Module: Rfaye

Defined in:
lib/rfaye.rb,
lib/rfaye/conf.rb,
lib/rfaye/engine.rb,
lib/rfaye/view_helpers.rb,
lib/rfaye/faye_extension.rb,
lib/generators/rfaye/install_generator.rb

Defined Under Namespace

Modules: Generators, ViewHelpers Classes: Conf, Engine, FayeExtension

Class Method Summary collapse

Class Method Details

.up(options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/rfaye.rb', line 8

def up(options = {})
	options = {:mount => Rfaye::Conf[:mount], :timeout => 45, :extensions => [FayeExtension.new]}.merge(options)
	Faye::WebSocket.load_adapter('thin')
	Faye::RackAdapter.new(options)
end