clientMultiUrls static method

  1. @Deprecated('Use the SyncClient constructor instead')
SyncClient clientMultiUrls(
  1. Store store,
  2. List<String> serverUrls,
  3. SyncCredentials credentials, {
  4. Map<String, String>? filterVariables,
  5. List<String>? certificatePaths,
  6. int? flags,
})

Like client, but accepts a list of URLs to work with multiple servers.

Passing multiple URLs allows high availability and load balancing (for ex. using a ObjectBox Sync Server Cluster). A random URL is selected for each connection attempt.

Implementation

@Deprecated('Use the SyncClient constructor instead')
static SyncClient clientMultiUrls(
        Store store, List<String> serverUrls, SyncCredentials credentials,
        {Map<String, String>? filterVariables,
        List<String>? certificatePaths,
        int? flags}) =>
    SyncClient(store, serverUrls, [credentials],
        filterVariables: filterVariables,
        certificatePaths: certificatePaths,
        flags: flags);