Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (23 sloc) 0.514 kb
module DaemonKit
# Thin wrapper around the blather DSL
class XMPP
include ::Blather::DSL
class << self
def run( &block )
DaemonKit::EM.run
xmpp = new
xmpp.instance_eval( &block )
xmpp.run
end
end
def initialize
@config = DaemonKit::Config.load('jabber')
jid = if @config.resource
"#{@config.jabber_id}/#{@config.resource}"
else
@config.jabber_id
end
setup jid, @config.password
end
end
end
Jump to Line
Something went wrong with that request. Please try again.