isNeedAuth() public method

public isNeedAuth ( ) : boolean
return boolean
 public function process()
 {
     while (strlen($buffer = $this->client->readThreadToMainPacket()) > 0) {
         $this->handlePacket($buffer);
     }
     $this->connected = $this->client->isConnected();
     if ($this->client->isNeedAuth()) {
         $this->synapse->connect();
         $this->client->setNeedAuth(false);
     }
 }