/** * 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(); } }