feat: deliver realtime errors to subscription streams (v26.1.0) - #330
Merged
Conversation
Realtime errors were thrown from the websocket message handler; they are now delivered to active subscription streams via addError so consumers can handle them through the subscription's onError. Bumps flutter SDK to 26.1.0.
Greptile SummaryThe PR changes realtime policy-violation handling so active subscriptions receive an
Confidence Score: 5/5The PR appears safe to merge, with policy-violation failures now exposed through the subscription streams consumers can observe. The changed handler preserves the existing exception type and distributes it through active broadcast stream controllers, while the package metadata and changelog consistently identify the 26.1.0 release. Important Files Changed
Reviews (1): Last reviewed commit: "feat: deliver realtime policy-violation ..." | Re-trigger Greptile |
HarshMN2345
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the realtime error-handling fix from sdk-generator#1857 to the Flutter SDK.
What's Changed
Previously
handleErrorthrew anAppwriteExceptionfrom inside the websocket message handler, where consumers could not catch it. It now callssubscription.controller.addError(...)on every active subscription, so errors surface through the subscription stream'sonError.Bumps SDK to 26.1.0.