init abstract method

dynamic init({
  1. required List<String> relaysUrl,
  2. void onRelayListening(
    1. String relayUrl,
    2. dynamic receivedData,
    3. WebSocket? relayWebSocket
    )?,
  3. void onRelayConnectionError(
    1. String relayUrl,
    2. Object? error,
    3. WebSocket? relayWebSocket
    )?,
  4. void onRelayConnectionDone(
    1. String relayUrl,
    2. WebSocket? relayWebSocket
    )?,
  5. bool lazyListeningToRelays = false,
  6. bool retryOnError = false,
  7. bool retryOnClose = false,
})

Implementation

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