Skip to content

fix(realtime)!: reject presence listeners after subscribe when presence is off - #2201

Merged
spydon merged 2 commits into
mainfrom
lukasklingsbo/sdk-3202-presence-listener-after-subscribe
Nov 30, 2026
Merged

spydon merged 2 commits into
mainfrom
lukasklingsbo/sdk-3202-presence-listener-after-subscribe

Conversation

@spydon

@spydon spydon commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

A presence listener added to a joining or joined channel with presence off now throws a StateError instead of silently rejoining the channel, per the subscribe_presence spec.

  • Presence is on when the join asked for it (listener before subscribe() or presenceEnabled) or a track() succeeded since the join.
  • Removes the automatic presence rejoin.
  • MIGRATION.md section and realtime skill updated.

SDK-3202

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ccbc494 and 8c173e1.

Files selected for processing: 8

  • MIGRATION.md
  • packages/supabase/skills/supabase-realtime/SKILL.md
  • packages/supabase_flutter/skills/supabase-flutter-realtime/SKILL.md
  • packages/supabase_realtime/lib/src/realtime_channel.dart
  • packages/supabase_realtime/test/channel_test.dart
  • packages/supabase_realtime/test/realtime_integration_test.dart
  • packages/supabase_realtime/test/rejoin_test.dart
  • skills_src/realtime/SKILL.md.tmpl
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@spydon
spydon merged commit a6f5147 into main Nov 30, 2026
55 checks passed
@spydon
spydon deleted the lukasklingsbo/sdk-3202-presence-listener-after-subscribe branch November 30, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant