isConnected() public method

Tells if connection is established
public isConnected ( ) : boolean
return boolean Success
コード例 #1
0
ファイル: Queue.php プロジェクト: tonicospinelli/disque-php
 /**
  * Check that we are connected to a node, and if not connect
  *
  * @throws Disque\Connection\ConnectionException
  */
 private function checkConnected()
 {
     if (!$this->client->isConnected()) {
         $this->client->connect();
     }
 }