Sha256: 703892bd52e9a480223f0fb6449759a8e5a7941f89cd5aca2a9a3b36d0877cf1
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
module Blather class Stream # @private class Client < Stream LANG = 'en' VERSION = '1.0' NAMESPACE = 'jabber:client' def start @parser = Parser.new self send "<stream:stream to='#{@to}' xmlns='#{NAMESPACE}' xmlns:stream='#{STREAM_NS}' version='#{VERSION}' xml:lang='#{LANG}'>" end def send(stanza) stanza.from = self.jid if stanza.is_a?(Stanza) && !stanza.from.nil? super stanza end end #Client end #Stream end #Blather
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blather-0.8.3 | lib/blather/stream/client.rb |