connectInternal abstract method

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

Internal method to establish a sync client connection.

This method will always be wrapped in an exclusive mutex through the connect method and should not be called elsewhere. This method will only be called internally when no other sync client is active, so the method should not call disconnect itself.

The crudThrottleTime is the throttle time between CRUD operations, it defaults to 10 milliseconds in connect.

Implementation

@protected
@internal
Future<void> connectInternal({
  required PowerSyncBackendConnector connector,
  required Duration crudThrottleTime,
  required AbortController abort,
  Map<String, dynamic>? params,
});