Skip to content

Conversation

@edgurgel
Copy link
Member

@edgurgel edgurgel commented Nov 26, 2025

🔍 Description

In the future we want to be able to include some metadata using JSON to User Broadcast Push.

What changed?

Add an optional metadata to be sent as part of the User Broadcast Push. At the moment it won't send anything because we don't have any allowed metadata keys but the serializer is ready to accept those as an option.

We don't have any usage at the moment for this extra metadata but we want to have this ready for the future

Related to supabase/realtime#1629

📸 Screenshots/Examples

🔄 Breaking changes

  • This PR contains no breaking changes

No breaking changes because 2.0.0 has not been set as default serializer and not publicly advertised just yet.

📋 Checklist

  • I have read the Contributing Guidelines
  • My PR title follows the conventional commit format: <type>(<scope>): <description>
  • I have run npx nx format to ensure consistent code formatting
  • I have added tests for new functionality (if applicable)
  • I have updated documentation (if applicable)

📝 Additional notes

We don't have any usage at the moment for this extra metadata but we
want to have this ready for the future
@edgurgel edgurgel requested review from a team as code owners November 26, 2025 02:02
@github-actions github-actions bot added the realtime-js Related to the realtime-js library. label Nov 26, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 26, 2025

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@1894

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@1894

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@1894

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@1894

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@1894

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@1894

commit: 1c7d8c5

@coveralls
Copy link

coveralls commented Nov 26, 2025

Coverage Status

coverage: 95.367% (+14.2%) from 81.184%
when pulling 1c7d8c5 on feat/realtime-user-broadcast-push-metadata
into 2ab882b on master.

filipecabaco
filipecabaco previously approved these changes Nov 26, 2025
@mandarini mandarini merged commit 33c0b1e into master Nov 26, 2025
26 checks passed
@mandarini mandarini deleted the feat/realtime-user-broadcast-push-metadata branch November 26, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

realtime-js Related to the realtime-js library. trigger: preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants