# File lib/stomp/connection.rb, line 311 def unsubscribe(dest, headers = {}, subId = nil) raise Stomp::Error::NoCurrentConnection if closed? headers = headers.symbolize_keys headers[:destination] = dest if @protocol >= Stomp::SPL_11 raise Stomp::Error::SubscriptionRequiredError if (headers[:id].nil? && subId.nil?) end _headerCheck(headers) transmit(Stomp::CMD_UNSUBSCRIBE, headers) if @reliable subId = dest if subId.nil? @subscriptions.delete(subId) end end