reconnectToRelays abstract method
Future<void>
reconnectToRelays({
- required void onRelayListening()?,
- required void onRelayConnectionError()?,
- required void onRelayConnectionDone()?,
- required bool retryOnError,
- required bool retryOnClose,
- required bool shouldReconnectToRelayOnNotice,
- required Duration connectionTimeout,
- required bool ignoreConnectionException,
- required bool lazyListeningToRelays,
- bool relayUnregistered = true,
Implementation
Future<void> reconnectToRelays({
required void Function(
String relayUrl,
dynamic receivedData,
WebSocket? relayWebSocket,
)? onRelayListening,
required void Function(
String relayUrl,
Object? error,
WebSocket? relayWebSocket,
)? onRelayConnectionError,
required void Function(String relayUrl, WebSocket? relayWebSocket)?
onRelayConnectionDone,
required bool retryOnError,
required bool retryOnClose,
required bool shouldReconnectToRelayOnNotice,
required Duration connectionTimeout,
required bool ignoreConnectionException,
required bool lazyListeningToRelays,
bool relayUnregistered = true,
});