watchConnections static method

Future<void Function()> watchConnections(
  1. WatchConnectionsParameters watchConnectionsParameters, {
  2. String configKey = 'default',
})

Implementation

static Future<void Function()> watchConnections(
    WatchConnectionsParameters watchConnectionsParameters, {
      String configKey = 'default',
    }) =>
    _guardFuture(() async {
      _logAction('watchConnections');
      final result = await window.wagmiCore
          .watchConnections(
        configKey.toJS,
        watchConnectionsParameters.toJS2,
      )
          .toDart;
      return result.toDart;
    });