Sha256: 8444ce51647bd0764ae1d2ab4f545afa3576040b65e9d985d6d8b892463593a6
Contents?: true
Size: 622 Bytes
Versions: 22
Compression:
Stored size: 622 Bytes
Contents
module Blather class Stream # @private class Client < Stream LANG = 'en' VERSION = '1.0' NAMESPACE = 'jabber:client' def start @parser = Parser.new self start_stream = <<-STREAM <stream:stream to='#{@to}' xmlns='#{NAMESPACE}' xmlns:stream='#{STREAM_NS}' version='#{VERSION}' xml:lang='#{LANG}' > STREAM send start_stream.gsub(/\s+/, ' ') 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
22 entries across 22 versions & 2 rubygems