Skip to content

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

docs(realtime): use the new httpSend for REST broadcast (#40227)

Eduardo Gurgel00d8c4913536
diff --git a/apps/docs/spec/supabase_js_v2.yml b/apps/docs/spec/supabase_js_v2.yml
index 1e15bc95b8d..f9de73a58a2 100644
--- a/apps/docs/spec/supabase_js_v2.yml
+++ b/apps/docs/spec/supabase_js_v2.yml
@@ -7375,12 +7375,7 @@ functions:
```js
supabase
.channel('room1')
- .send({
- type: 'broadcast',
- event: 'cursor-pos',
- payload: { x: Math.random(), y: Math.random()
- },
- })
+ .httpSend('cursor-pos', { x: Math.random(), y: Math.random() })
```
- id: get-channels
title: getChannels()