client property
MongoRealtime
get
client
Returns the shared client created by the last call to MongoRealtime.connect.
Implementation
static MongoRealtime get client {
final client = _instance;
if (client == null) {
throw StateError(
'MongoRealtime client is not available. Call '
'MongoRealtime.connect(url) first.',
);
}
return client;
}