Sha256: f05be18bc23d6224a6770a62b58424abce7a1cd7d733ad46721942915e2a5f5e

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

module Stomper
  module Frames
    # Encapsulates a "CONNECT" frame from the Stomp Protocol.
    #
    # See the {Stomp Protocol Specification}[http://stomp.codehaus.org/Protocol]
    # for more details.
    class Connect < Stomper::Frames::ClientFrame
      def initialize(username='', password='', headers={})
        super('CONNECT', headers)
        @headers.login = username
        @headers.passcode = password
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stomper-0.4 lib/stomper/frames/connect.rb
stomper-0.3.2 lib/stomper/frames/connect.rb
stomper-0.3.1 lib/stomper/frames/connect.rb
stomper-0.3.0 lib/stomper/frames/connect.rb