protected function removeEventListener($event, callable $callback) { if ($this->socket !== null) { $this->socket->removeListener($event, $callback); } }