subscribed property

Future<void> get subscribed

Resolves when the server has delivered the initial subscription batch for this table. Completes exactly once; stays completed across reconnects. Resolves even for empty tables (no row-count gate). Throws SpacetimeDbSubscriptionException if the server rejects a subscription query that references this table by name.

await client.connect(initialSubscriptions: ['SELECT * FROM notes']);
await client.notes.subscribed;
print('notes ready: ${client.notes.rows.value.length}');

Implementation

Future<void> get subscribed => _subscribedCompleter.future;