Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: Move the js specific note into js tab on Broadcast REST API section (#20459)

Tyler9da234ff22ce
diff --git a/apps/docs/pages/guides/realtime/broadcast.mdx b/apps/docs/pages/guides/realtime/broadcast.mdx
index a541548ca05..8de8e817f02 100644
--- a/apps/docs/pages/guides/realtime/broadcast.mdx
+++ b/apps/docs/pages/guides/realtime/broadcast.mdx
@@ -388,12 +388,6 @@ Use this to guarantee that the server has received the message before resolving
### Send messages using REST calls
-<Admonition type="note">
-
-This is currently available only in the Supabase JavaScript client version 2.37.0 and later.
-
-</Admonition>
-
You can also send a Broadcast message by making an HTTP request to Realtime servers. This is useful when you want to send messages from your server or client without having to first establish a WebSocket connection.
<Tabs
@@ -404,6 +398,12 @@ You can also send a Broadcast message by making an HTTP request to Realtime serv
queryGroup="language"
>
<TabPanel id="js" label="JavaScript">
+ <Admonition type="note">
+
+ This is currently available only in the Supabase JavaScript client version 2.37.0 and later.
+
+ </Admonition>
+
```js
const channel = client.channel('test-channel')