WebSocketException.connectionFailed constructor

const WebSocketException.connectionFailed(
  1. String reason, {
  2. Object? cause,
  3. StackTrace? stackTrace,
})

Creates a WebSocketException for connection failures.

Implementation

const WebSocketException.connectionFailed(
  String reason, {
  Object? cause,
  StackTrace? stackTrace,
}) : this('Connection failed: $reason', cause: cause, stackTrace: stackTrace);