Method: Faye::Server#initialize

Defined in:
lib/faye/protocol/server.rb

#initialize(options = {}) ⇒ Server



11
12
13
14
15
16
17
18
# File 'lib/faye/protocol/server.rb', line 11

def initialize(options = {})
  @options    = options || {}
  engine_opts = @options[:engine] || {}
  engine_opts[:timeout] = @options[:timeout]
  @engine     = Faye::Engine.get(engine_opts)

  info('Created new server: ?', @options)
end