Sha256: c3a86675d46b65456a89a254bd78b4f8f4a2620169215dca0418a652c3fc61db
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
module Stomper # This module holds all known encapsulations of # frames that are part of the Stomp Protocol specification. module Frames HEADER_DELIMITER = ':' TERMINATOR = 0 LINE_DELIMITER = "\n" class IndirectFrame #:nodoc: attr_reader :headers, :body def initialize(headers={}, body=nil, command=nil) @command = command && command.to_s.upcase @headers = headers.dup @body = body end def command @command ||= self.class.name.split("::").last.upcase end end end end require 'stomper/frames/client_frame' require 'stomper/frames/server_frame' require 'stomper/frames/abort' require 'stomper/frames/ack' require 'stomper/frames/begin' require 'stomper/frames/commit' require 'stomper/frames/connect' require 'stomper/frames/connected' require 'stomper/frames/disconnect' require 'stomper/frames/error' require 'stomper/frames/message' require 'stomper/frames/receipt' require 'stomper/frames/send' require 'stomper/frames/subscribe' require 'stomper/frames/unsubscribe'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stomper-1.0.0 | lib/stomper/frames.rb |