Sha256: c8b0f8407e53f5570420ffc6724858513c583efcca5bb40f9196f3d00a5c1a28
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
module Stomper module Frames # Encapsulates an "UNSUBSCRIBE" frame from the Stomp Protocol. class Unsubscribe < Stomper::Frames::ClientFrame def initialize(destination, headers={}) super(headers.merge({ :destination => destination })) end # Returns the id of the subscription being unsubscribed from, if it # exists. # # This is a convenience method, and may also be accessed through # frame.headers[:id] def id @headers[:id] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stomper-1.0.0 | lib/stomper/frames/unsubscribe.rb |