title: I can't get a Pubnub presence timeout to reliably use the heartbeat value - what am I missing?
body: <p>We have a variety of pubnub clients: javascript, ruby, actionscript</p>
  
  <p>Its important that I know if/when clients leave a channel; even if a browser or desktop application (Native Air app) crashes. I'm updating the ActionScript library to support presence, so I cribbed from the JavaScript and Ruby implementations, I have presence working when everything is behaving nicely, but heartbeat doesn't appear to work in detecting clients that crash in my version.</p>
  
  <p>So, I tried the following in Ruby using irb (gem version 3.6.7):</p>
  
  <pre><code>require 'pubnub'
  
  pn = Pubnub.new(:subscribe_key =&gt; 'my_sub_key', :uuid =&gt; 'my_uuid', :heartbeat =&gt; 30)
  pn.subscribe(:channel =&gt; 'my_channel') { |d| d.msg }
  </code></pre>
  
  <p>Then I entered the subscribe_key and channel into the Pubnub console. As expected, my subscription was there.</p>
  
  <p>I exited out of irb and waited. I expected to see a presence timeout at about the 30 second mark, but needed to have to wait the entire 6 minutes before I received the timeout.</p>
  
  <p><strong>Note also:</strong> things do appear to work with the Javascript client.</p>
  
  <p>Do I need to turn something else on beyond 'presence' to get this to work as expected, or am I misunderstanding what heartbeat does?</p>