Disque\Client::isConnected PHP Method

isConnected() public method

Tells if connection is established
public isConnected ( ) : boolean
return boolean Success
    public function isConnected()
    {
        return $this->connectionManager->isConnected();
    }

Usage Example

Esempio n. 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();
     }
 }