title: Controlling the heartbeat timeout from the client in socket.io
body: <p>I have mobile clients connected to a node.js server, running socket.io via xhr-polling. I have two type of clients:</p>
  
  <ul>
  <li><p>Type A</p>
  
  <p>When the connection breaks up due to network problems (or that the
  client crashes) the default heart beat timeout is too long</p></li>
  <li><p>Type B</p>
  
  <p>When the connection breaks up for this client I need to give it more
  time to recover - it is more important that the client recovers than
  the server breaks the connection/session</p></li>
  </ul>
  
  <p>So my question is how to I configure (if it is possible) the heartbeat timeouts from the actual client?</p>