public function wait()
  {
    if($this->getTransport()->getConfig("blocking"))
    {
      throw new Exception("only available in non-blocking mode");
    }

    do {
      $evt = $this->getTransport()->readLine();
    } while($evt instanceof \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\String && !$evt->section(\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\TeamSpeak3::SEPARATOR_CELL)->startsWith(\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\TeamSpeak3::EVENT));

    return new ServerQuery\Event($evt, $this->getHost());
  }
public function wait()
  {
    if($this->getTransport()->getConfig("blocking"))
    {
      throw new Exception("only available in non-blocking mode");
    }

    do {
      $evt = $this->getTransport()->readLine();
    } while($evt instanceof \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\String && !$evt->section(\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\TeamSpeak3::SEPARATOR_CELL)->startsWith(\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\TeamSpeak3::EVENT));

    return new ServerQuery\Event($evt, $this->getHost());
  }
public function wait ( ) { if ( $ this -> getTransport ( ) -> getConfig ( "blocking" ) ) { throw new Exception ( "only available in non-blocking mode" ) ; } do { $ evt = $ this -> getTransport ( ) -> readLine ( ) ; } while ( $ evt instanceof \ ManiaLivePlugins \ Standard \ TeamSpeak \ TeamSpeak3 \ Helper \ String && ! $ evt -> section ( \ ManiaLivePlugins \ Standard \ TeamSpeak \ TeamSpeak3 \ TeamSpeak3 :: SEPARATOR_CELL ) -> startsWith ( \ ManiaLivePlugins \ Standard \ TeamSpeak \ TeamSpeak3 \ TeamSpeak3 :: EVENT ) ) ; return new ServerQuery \ Event ( $ evt , $ this -> getHost ( ) ) ; }
Waits for the server to send a notification message and returns the result.

@throws Exception
@return ServerQuery\Event
Waits for the server to send a notification message and returns the result .