module Blather class Stream class Client < Stream LANG = 'en' VERSION = '1.0' NAMESPACE = 'jabber:client' def start @parser = Parser.new self start_stream = <<-STREAM 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