init abstract method
Future<void>
init({
- required List<
String> relaysUrl, - void onRelayListening(
- String relayUrl,
- dynamic receivedData,
- WebSocketChannel? relayWebSocket
- void onRelayConnectionError()?,
- void onRelayConnectionDone(
- String relayUrl,
- WebSocketChannel? relayWebSocket
- bool lazyListeningToRelays = false,
- bool retryOnError = false,
- bool retryOnClose = false,
Implementation
Future<void> init({
required List<String> relaysUrl,
void Function(
String relayUrl,
dynamic receivedData,
WebSocketChannel? relayWebSocket,
)? onRelayListening,
void Function(
String relayUrl,
Object? error,
WebSocketChannel? relayWebSocket,
)? onRelayConnectionError,
void Function(
String relayUrl,
WebSocketChannel? relayWebSocket,
)? onRelayConnectionDone,
bool lazyListeningToRelays = false,
bool retryOnError = false,
bool retryOnClose = false,
});