You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
println!("Subscription ready with {} users", ctx.db().user().count());
159
+
})
160
+
.on_error(|ctx, error| {
161
+
eprintln!("Subscription failed: {}", error);
162
+
})
163
+
.add_query(|ctx|ctx.from.user().build())
164
+
.subscribe();
165
+
```
166
+
167
+
</TabItem>
168
+
</Tabs>
169
+
113
170
See the [Subscriptions documentation](/subscriptions) for detailed information on subscription queries and semantics. Subscribe to [tables](/tables) for row data, or to [views](/functions/views) for computed query results.
0 commit comments