Skip to content

Bugfix: unable to listen postgres changes on channel. #28

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?

Bug fix

What is the current behavior?

When creating a channel to listen to a postgres schema, table, or column. No changes will be receieved by the client due to having a configuration the server is not expecting. The configuration is only expected and should be sent if a channel is meant to be used with Presence or Broadcast API.

What is the new behavior?

When creating a channel, the options (ChannelOptions) parameter will default to nil enabling the client to receive postgres changes. However if Broadcast or Presence is desired, options can be passed in like previous commit 0d3eea7 .

@foodisbeast
Copy link
Author

Does this look alright, or do you recommend changing something @GRSouza ?

@grdsdev grdsdev merged commit 2a64797 into supabase-community:update-upstream Sep 14, 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