Skip to content

Mirror supabase realtime-js Channel Broadcast and Presence track/untrack #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

foodisbeast
Copy link

What kind of change does this PR introduce?

feature, docs update

What is the current behavior?

ChannelEvent is missing events broadcast and presence. This prevents sending Presence track and untrack messages, as well as broadcast messages.

What is the new behavior?

  • Added broadcast and presence event to ChannelEvent enum.
  • Added track and untrack functions to Channel. (See supabase docs for Presence and RealtimeChannel.ts from realtime-swift.
  • Added helper function broadcast to Channel (Broadcast from supabase docs)
  • Added docs demonstrating usage of new Broadcast and Presence functions

@grdsdev grdsdev merged commit 0d3eea7 into supabase-community:update-upstream Aug 2, 2023
This was referenced Sep 5, 2023
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.

2 participants