Sha256: 4288652b724798b67fb3880fd4b58626416cb3b2821483815b42f7296d6f843f

Contents?: true

Size: 517 Bytes

Versions: 13

Compression:

Stored size: 517 Bytes

Contents

module Blather
class Stream

  class Client < Stream
    LANG = 'en'
    VERSION = '1.0'
    NAMESPACE = 'jabber:client'

  protected
    def start
      @parser = Parser.new self
      start_stream = <<-STREAM
        <stream:stream
          to='#{@to}'
          xmlns='#{NAMESPACE}'
          xmlns:stream='http://etherx.jabber.org/streams'
          version='#{VERSION}'
          xml:lang='#{LANG}'
        >
      STREAM
      send start_stream.gsub(/\s+/, ' ')
    end
  end #Client

end #Stream
end #Blather

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
sprsquish-blather-0.2.3 lib/blather/stream/client.rb
sprsquish-blather-0.3.0 lib/blather/stream/client.rb
sprsquish-blather-0.3.1 lib/blather/stream/client.rb
sprsquish-blather-0.3.2 lib/blather/stream/client.rb
sprsquish-blather-0.3.3 lib/blather/stream/client.rb
sprsquish-blather-0.3.4 lib/blather/stream/client.rb
blather-0.2.2 lib/blather/stream/client.rb
blather-0.3.1 lib/blather/stream/client.rb
blather-0.2.3 lib/blather/stream/client.rb
blather-0.3.0 lib/blather/stream/client.rb
blather-0.3.4 lib/blather/stream/client.rb
blather-0.3.3 lib/blather/stream/client.rb
blather-0.3.2 lib/blather/stream/client.rb