The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: Add Flutter docs for Realtime Broadcast Endpoint (#18238)
Filipe Cabaço6f23f2adedcb
diff --git a/apps/docs/pages/guides/realtime/broadcast.mdx b/apps/docs/pages/guides/realtime/broadcast.mdxindex 14082d8d19b..177ced85477 100644--- a/apps/docs/pages/guides/realtime/broadcast.mdx+++ b/apps/docs/pages/guides/realtime/broadcast.mdx@@ -298,25 +298,51 @@ This is currently available only in the Supabase JavaScript client version 2.37.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+ scrollable+ size="small"+ type="underlined"+ defaultActiveId="js"+ queryGroup="language"+>+<TabPanel id="js" label="JavaScript">```jsconst channel = client.channel('test-channel')// No need to subscribe to channelchannel- .send({- type: 'broadcast',- event: 'test',- payload: { message: 'Hi' },- })- .then((resp) => {- console.log(resp)- })+.send({+type: 'broadcast',+event: 'test',+payload: { message: 'Hi' },+})+.then((resp) => console.log(resp))// Remember to clean up the channelclient.removeChannel(channel)-```++````++</TabPanel>+<TabPanel id="dart" label="Dart">+```dart+// No need to subscribe to channel++channel = client.channel('test-channel');+final resp = await channel.send(+ type: RealtimeListenTypes.broadcast,+ payload: {+ 'message': 'Hi',+ },+ event: "test"+);+print(resp);+````++</TabPanel>+</Tabs>export const Page = ({ children }) => <Layout meta={meta} children={children} />