clientMultiUrls static method
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);