lib/stomper/extensions/heartbeat.rb in stomper-2.0.3 vs lib/stomper/extensions/heartbeat.rb in stomper-2.0.4

- old
+ new

@@ -15,11 +15,11 @@ # By default, this method does nothing. If the established connection # utilizes the Stomp 1.1 protocol, this method will be overridden by # {Stomper::Protocols::V1_1::Heartbeating#beat}. def beat; end - # By default, a connection is alive if it is connected. + # By default, a connection is alive if it is {Stomper::Connection#connected?}. # If the established connection utilizes the Stomp 1.1 protocol, this # method will be overridden by {Stomper::Protocols::V1_1::Heartbeating#alive?}. # @return [true,false] # @see #dead? def alive? @@ -39,10 +39,10 @@ def beat transmit ::Stomper::Frame.new end # Stomp 1.1 {Stomper::Connection connections} are alive if they are - # +connected?+ and are meeting their negotiated heart-beating obligations. + # {Stomper::Connection#connected?} and are meeting their negotiated heart-beating obligations. # @return [true, false] # @see #dead? def alive? connected? && client_alive? && broker_alive? end