/** * */ public function close() { if ($this->closed) { return; } $this->emit('end', [$this]); $this->loop->removeStream($this->fd); $this->buffer->removeAllListeners(); $this->removeAllListeners(); unset($this->socket); $this->closed = true; }
/** * @override */ public function removeStream($stream) { $this->loop->removeStream($stream); }