class Blather::Stream::Client

@private

Constants

LANG
NAMESPACE
VERSION

Public Instance Methods

cleanup() click to toggle source
Calls superclass method
# File lib/blather/stream/client.rb, line 20
def cleanup
  @parser.finish if @parser
  super
end
send(stanza) click to toggle source
Calls superclass method Blather::Stream#send
# File lib/blather/stream/client.rb, line 15
def send(stanza)
  stanza.from = self.jid if stanza.is_a?(Stanza) && !stanza.from.nil?
  super stanza
end
start() click to toggle source
# File lib/blather/stream/client.rb, line 10
def start
  @parser = Parser.new self
  send "<stream:stream to='#{@to}' xmlns='#{NAMESPACE}' xmlns:stream='#{STREAM_NS}' version='#{VERSION}' xml:lang='#{LANG}'>"
end