Function spacetimedb_sdk::on_subscription_applied

source ·
pub fn on_subscription_applied(
    callback: impl FnMut() + Send + 'static
) -> SubscriptionCallbackId
Expand description

Register a callback to be invoked upon a subscription’s matching rows becoming available.

The callback will be invoked after a successful subscribe or subscribe_owned call when the initial set of matching rows becomes available.

The returned SubscriptionCallbackId can be passed to remove_on_subscription_applied to unregister the callback.