Disque\Client::connect PHP Method

connect() public method

Connect to Disque
public connect ( ) : Disque\Connection\Node\Node
return Disque\Connection\Node\Node Connected node information
    public function connect()
    {
        return $this->connectionManager->connect();
    }

Usage Example

 /**
  * @param array $options
  * @return array
  * @throws
  */
 public function connect($options = [])
 {
     if (!$this->autoconnect) {
         return $this->disque->connect($options);
     } else {
         throw new \Exception('Connection already established via autoconnect, no need to call connect()');
     }
 }
All Usage Examples Of Disque\Client::connect