isConnected() публичный Метод

Tells if connection is established
public isConnected ( ) : boolean
Результат boolean Success
Пример #1
0
 /**
  * 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();
     }
 }