Sha256: e092ca7c7b35a0025d2ff1a7fdaeed55f1674a844d08f7f66c7d787ebf4eb20d

Contents?: true

Size: 485 Bytes

Versions: 4

Compression:

Stored size: 485 Bytes

Contents

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:stream
          to='#{@to}'
          xmlns='#{NAMESPACE}'
          xmlns:stream='#{STREAM_NS}'
          version='#{VERSION}'
          xml:lang='#{LANG}'
        >
      STREAM
      send start_stream.gsub(/\s+/, ' ')
    end
  end #Client

end #Stream
end #Blather

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sprsquish-blather-0.4.0 lib/blather/stream/client.rb
sprsquish-blather-0.4.1 lib/blather/stream/client.rb
blather-0.4.0 lib/blather/stream/client.rb
blather-0.4.1 lib/blather/stream/client.rb