baseConnect abstract method

  1. @protected
  2. @internal
Future<void> baseConnect({
  1. required PowerSyncBackendConnector connector,
  2. required Duration crudThrottleTime,
  3. required Future<void> reconnect(),
  4. Map<String, dynamic>? params,
})
inherited

Abstract connection method to be implemented by platform specific classes. This is wrapped inside an exclusive mutex in the connect method.

Implementation

@protected
@internal
Future<void> baseConnect(
    {required PowerSyncBackendConnector connector,

    /// Throttle time between CRUD operations
    /// Defaults to 10 milliseconds.
    required Duration crudThrottleTime,
    required Future<void> Function() reconnect,
    Map<String, dynamic>? params});