title: Ratchet wsserver's enableKeepAlive isn't closing connections?
body: <h1>Info</h1>
  
  <p>The enableKeepAlive configuration doesn't seem to work and the documentation doesn't even explain how to properly set it. <a href="http://socketo.me/docs/websocket" rel="nofollow noreferrer">http://socketo.me/docs/websocket</a></p>
  
  <p>I tested it by using a phone to open a connection then turning off both wifi and data. The client was never disconnected.</p>
  
  <h1>my code : chat-server.php</h1>
  
  <pre><code>&lt;?php
  use Ratchet\Server\IoServer;
  use Ratchet\Http\OriginCheck;
  use Ratchet\Http\HttpServer;
  use Ratchet\WebSocket\WsServer;
  use MyApp\Chat;
  
  require dirname(__DIR__) . '/vendor/autoload.php';
  
  $loop = React\EventLoop\Factory::create();
  $loop-&gt;run();
  $checkedApp = new WsServer( new Chat() );
  $checkedApp-&gt;enableKeepAlive($loop, 5);
  //$checkedApp = new OriginCheck(new WsServer( new Chat() ), array('localhost'));
  $checkedApp = new OriginCheck($checkedApp);
  $checkedApp-&gt;allowedOrigins[] = 'mywebsite.com';
  
  $server = IoServer::factory(
      new HttpServer(
          $checkedApp
      ),
      8082
  );
  
  //works, so loop works
  /*
  $server-&gt;loop-&gt;addPeriodicTimer(5, function () use ($server) {        
      foreach ($server-&gt;app-&gt;clients as $client) {                  
              $client-&gt;send("hello client");          
      }
  });
  */
  
  $server-&gt;run();
  </code></pre>