-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Better stream and access token management (#1019)
* fix: use correct join payload * fix: keep auth token valid while in background when using realtime * fix: correct supabase_flutter init log * refactor: add toString method to RealtimeCloseEvent * fix: reload data from postgrest after new realtime connection * test: fix mock test by increasing delay * fix: load postgrest before realtime conn and close realtime on error * test: restore delay and expect access_token instead of user_token * test: fix typo * refactor: small rename * fix: wait for conn being ready and re-add error to _triggerChanError * fix: don't stringify errors and fix tests * test: close conn from server * fix: disconnect when in background and await connecting to be ready * fix: rejoin channels in edge case * docs: improve method comments
- Loading branch information
Showing
10 changed files
with
208 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.