ready property
A Future that completes when the initial subscription to all requested channels/patterns is confirmed by the server. (A Future that completes when the subscription is ready.)
You MUST await this future before publishing messages to ensure
the subscription is active.
final sub = client.subscribe(['my-channel']);
await sub.ready; // Wait for confirmation
await publisher.publish('my-channel', 'hello');
Implementation
final Future<void> ready;