Standard/TeamSpeak/TeamSpeak3/Adapter/ServerQuery.php
protected function syn()
  {
    $this->initTransport($this->options);
    $this->transport->setAdapter($this);

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Profiler::init(spl_object_hash($this));

    if(!$this->getTransport()->readLine()->startsWith(\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\TeamSpeak3::READY))
    {
      throw new Exception("invalid reply from the server");
    }

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Signal::getInstance()->emit("serverqueryConnected", $this);
  }
protected function syn()
  {
    $this->initTransport($this->options);
    $this->transport->setAdapter($this);

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Profiler::init(spl_object_hash($this));

    if(!$this->getTransport()->readLine()->startsWith(\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\TeamSpeak3::READY))
    {
      throw new Exception("invalid reply from the server");
    }

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Signal::getInstance()->emit("serverqueryConnected", $this);
  }
Connects the TeamSpeak3_Transport_Abstract object and performs initial actions on the remote
server.

@throws Exception
@return void