public function readThreadToMainPacket() { return $this->externalQueue->shift(); }
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); } }