Tells if connection is established
public isConnected ( ) : boolean | ||
Résultat | boolean | Success |
/** * 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(); } }