From 86f4bea83dfdcfe220899ceba2c50ea15857ec32 Mon Sep 17 00:00:00 2001 From: Sebastien Chapuis Date: Mon, 12 Jan 2026 05:56:05 +0100 Subject: [PATCH] docs: Fix documentation for `realtime.send` call (#39839) The json payload is the first parameter: https://github.com/supabase/realtime/blob/5290aa117baabcd9d8c324e6c22574c348d35295/lib/realtime/tenants/repo/migrations/20250714121412_broadcast_send_error_logging.ex#L7 --- apps/docs/content/guides/realtime/getting_started.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/guides/realtime/getting_started.mdx b/apps/docs/content/guides/realtime/getting_started.mdx index 7e24d00d2a2..8860fbbf94a 100644 --- a/apps/docs/content/guides/realtime/getting_started.mdx +++ b/apps/docs/content/guides/realtime/getting_started.mdx @@ -501,14 +501,14 @@ BEGIN -- Send custom notification when new message is created IF TG_OP = 'INSERT' THEN PERFORM realtime.send( - 'room:' || NEW.room_id::text || ':notifications', - 'message_created', jsonb_build_object( 'message_id', NEW.id, 'user_id', NEW.user_id, 'room_id', NEW.room_id, 'created_at', NEW.created_at ), + 'message_created', + 'room:' || NEW.room_id::text || ':notifications', true -- private channel ); END IF;