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
The SDK ensures that live query subscribes successfully with a promise. The same should be applied to unsubscribe. This could be used in the SDK test suite to ensure connections to the server are closed.
Example Use Case
Using a promise would be a breaking change but would be aligned with subscribe
await subscription.unsubscribe();
Using a callback is an alternative
subscription.unsubscribe((error) => {});
Edit: I think we can support both
The text was updated successfully, but these errors were encountered:
❌ Please edit your post and use the provided template when creating a new issue. This helps everyone to understand your post better and asks for essential information to quicker review the issue.
New Feature / Enhancement Checklist
Feature / Enhancement Description
The SDK ensures that live query subscribes successfully with a promise. The same should be applied to
unsubscribe
. This could be used in the SDK test suite to ensure connections to the server are closed.Example Use Case
Using a promise would be a breaking change but would be aligned with
subscribe
Using a callback is an alternative
Edit: I think we can support both
The text was updated successfully, but these errors were encountered: