public function handleError(NetworkConnectionInterface $conn, $ex) { $this->emit('error', [$conn, $ex]); }