initialize static method
Initializes Mercury using the server https://apiUrl:port in namespace
.
The server must implement sdks/mercury.proto.
The auth
argument specifies information about the current user.
Implementation
static Future<void> initialize({
String apiUrl = 'fr-par-1.nuntio.cloud',
int port = 443,
String? namespace,
required UserAuth auth,
}) async {
_client = MercuryChannel.client(apiUrl, port);
_auth = auth;
_namespace = namespace;
}