onConnected property
Future<void>
get
onConnected
A Future that completes once the connection and authentication (if required) are successfully established.
Use this to wait for the client to be ready after calling connect():
client.connect();
await client.onConnected;
print('Client is connected!');
Throws a ValkeyClientException if accessed before connect() is called
or if the connection attempt failed.
Implementation
Future<void> get onConnected;