Skip to content

feat(realtime): optionally disconnect when the last channel closes - #540

Merged
Tr00d merged 2 commits into
supabase:masterfrom
fresh55:feat/realtime-deferred-disconnect
Oct 23, 2026
Merged

Tr00d merged 2 commits into
supabase:masterfrom
fresh55:feat/realtime-deferred-disconnect

Conversation

@fresh55

@fresh55 fresh55 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Closes #244, closes #253.

When ClientOptions.DisconnectOnEmptyChannelsAfter is set, the socket disconnects once the last channel has been unsubscribed for that long. The delay restarts if a channel comes and goes in between. Off by default on purpose, since subscribing does not reconnect the socket: call ConnectAsync again before creating new channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants