Repository navigation
docs(realtime): rejoin a channel after a server phx_error - #334
Merged
grdsdev merged 1 commit intoNov 10, 2026
Conversation
Add a "Server channel error" section to the subscribe spec. A phx_error for the current join marks the channel errored and rejoins it with the rejoin delays; one for a stale join_ref changes nothing; phx_close still removes the channel. Follows @supabase/phoenix 0.4.5 channel.js. Refs SDK-2609
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
Stacked on #304. Merge #304 first; this PR then retargets to
main.Adds a "Server channel error" section to
specs/realtime/channel/subscribe.md:phx_errorfor a stalejoin_refchanges nothing.phx_errorcounts as a failed join attempt. Subscribe keeps waiting.phx_closeremoves the channel and does not rejoin.The rules follow
@supabase/phoenix0.4.5channel.js. The state diagram gains thephx_errorandphx_closetransitions.presence_state.mdrule 5 assumes this rejoin, and the new section links it. That file is onmain, so the link resolves once #304 merges.Context: SDK-2609 (supabase-swift v3 does not rejoin after a server
phx_error).