Class: Adhearsion::XMPP::Connection
- Inherits:
-
Object
- Object
- Adhearsion::XMPP::Connection
- Includes:
- Blather::DSL
- Defined in:
- lib/adhearsion/xmpp/connection.rb
Instance Method Summary collapse
-
#initialize ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize ⇒ Connection
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 |