SyncSubscriptionSet

SyncSubscriptionSet is a collection of SyncSubscriptions. This is the entry point for adding and removing SyncSubscriptions.

Initializers

  • The number of subscriptions in the subscription set.

  • Synchronously performs any transactions (add/remove/update) to the subscription set within the block.

  • Returns the current state for the subscription set.

  • Returns a subscription by the specified name.

  • Returns a subscription by the specified query.

  • Returns a subscription by the specified query.

  • Appends one or several subscriptions to the subscription set.

    Warning

    This method may only be called during a write subscription block.

  • Removes a subscription with the specified query.

    Warning

    This method may only be called during a write subscription block.

  • Removes a subscription with the specified query.

    Warning

    This method may only be called during a write subscription block.

  • Removes a subscription with the specified query.

    Warning

    This method may only be called during a write subscription block.

  • Removes one or several subscriptions from the subscription set.

    Warning

    This method may only be called during a write subscription block.

  • Removes a subscription with the specified name from the subscription set.

    Warning

    This method may only be called during a write subscription block.

  • Removes all subscriptions from the subscription set.

    Warning

    This method may only be called during a write subscription block.

    Warning

    Removing all subscriptions will result in an error if no new subscription is added. Server should acknowledge at least one subscription.
  • Removes zero or none subscriptions of the given type from the subscription set.

    Warning

    This method may only be called during a write subscription block.

Subscription Retrieval

  • Returns the subscription at the given position.

  • Returns the first object in the SyncSubscription list, or nil if the subscriptions are empty.

  • Returns the last object in the SyncSubscription list, or nil if the subscriptions are empty.

Sequence Support