Skip to content

feat: add Supabase Realtime integration (#20)#48

Open
JEETDESAI25 wants to merge 1 commit into
supabase-community:mainfrom
JEETDESAI25:feature/realtime-integration
Open

feat: add Supabase Realtime integration (#20)#48
JEETDESAI25 wants to merge 1 commit into
supabase-community:mainfrom
JEETDESAI25:feature/realtime-integration

Conversation

@JEETDESAI25

Copy link
Copy Markdown

What kind of change does this PR introduce?

Feature - adds Supabase Realtime client integration

What is the current behavior?

Realtime is not supported. Closes #20

What is the new behavior?

  • Adds Realtime field to Client struct
  • Extracts project reference from URL (with ClientOptions.ProjectRef override)
  • Propagates auth tokens to Realtime in UpdateAuthSession
  • Lazy connection - users call client.Realtime.Connect(ctx)

Additional context

Depends on github.com/supabase-community/realtime-go

@ChainCoderX

Copy link
Copy Markdown

Does it works with local deploy supabase?

@JEETDESAI25

Copy link
Copy Markdown
Author

Not currently. For Realtime to work with local Supabase, the upstream realtime-go library would need to add custom URL support. @ChainCoderX

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.

When can we get the integration with Supabase.Realtime Realtime listeners for database changes feature?

2 participants