Class: Adhearsion::XMPP::Connection

Inherits:
Object
  • Object
show all
Includes:
Blather::DSL
Defined in:
lib/adhearsion/xmpp/connection.rb

Instance Method Summary collapse

Constructor Details

#initializeConnection

Returns a new instance of Connection.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/adhearsion/xmpp/connection.rb', line 10

def initialize
  Blather.logger = logger
  Blather.default_log_level = :trace if Blather.respond_to? :default_log_level
  register_default_client_handlers
  @shutting_down = false
  Adhearsion::Events.after_initialized { connect }
  Adhearsion::Events.shutdown do
    @shutting_down = true
    shutdown
  end
end