title: Socket.io lost connection when phone locks
body: <pre><code>setInterval(function(){ 
  socket.emit("stayalive", { "room": room });
  }, 5000);
  </code></pre>
  
  <p>i got a simple browser application with an interval function running on my phone. Im debugging with Chrome on my Nexus 4. My problem is now: When i lock the phone, the interval stops after about 5 min and then my phone is disconnected from the socket io server.</p>
  
  <p>If i dont lock the screen the interval dont stop and the phone will not disconnect.</p>
  
  <blockquote>
    <p>12:29:10 First interval</p>
    
    <p>12:34:27 Last incoming interval</p>
    
    <p>12:35:52 Client disconnected from Server</p>
  </blockquote>
  
  <p>Is this an android feature that after 5 mins every interval will be killed or something like that, when the phone is locked?</p>
  
  <p>I'm running chrome on my nexus 4, but friends with other devices got the same problem.</p>