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

        do {
            $evt = $this->getTransport()->readLine();
            var_dump($evt);
        } while ($evt instanceof StringHelper &&
                !$evt->section(TeamSpeak3::SEPARATOR_CELL)->startsWith(TeamSpeak3::EVENT));

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

        do {
            $evt = $this->getTransport()->readLine();
            var_dump($evt);
        } while ($evt instanceof StringHelper &&
                !$evt->section(TeamSpeak3::SEPARATOR_CELL)->startsWith(TeamSpeak3::EVENT));

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

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