SignalRConnectionOptions constructor
SignalRConnectionOptions({
- required String serverUrl,
- String? accessToken,
- Duration reconnectInterval = const Duration(seconds: 5),
- int maxRetryAttempts = 5,
- bool autoReconnect = true,
- dynamic onError()?,
- bool useSecureConnection = true,
- HttpTransportType transport = HttpTransportType.webSockets,
- bool skipNegotiation = false,
Implementation
SignalRConnectionOptions({
required this.serverUrl,
this.accessToken,
this.reconnectInterval = const Duration(seconds: 5),
this.maxRetryAttempts = 5,
this.autoReconnect = true,
this.onError,
this.useSecureConnection = true,
this.transport = HttpTransportType.webSockets,
this.skipNegotiation = false,
});