public function shutdown() { $this->loop->removeReadStream($this->socket->getResource()); $this->socket->shutdown(); $this->socket->close(); }
public function pause() { $this->loop->removeReadStream($this->socket->getResource()); }