public function handleError(NetworkConnectionInterface $conn, $ex);
/** * @override * @inheritDoc */ public function handleError(NetworkConnectionInterface $conn, $ex) { if ($conn->httpHeadersReceived) { $this->httpServer->handleError($conn, $ex); } else { $this->close($conn, 500); } }