Skip to content

Commit 00d8c49

Browse files
authored
docs(realtime): use the new httpSend for REST broadcast (supabase#40227)
channel.send has been soft deprecated for REST broadcast usage
1 parent d628196 commit 00d8c49

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

apps/docs/spec/supabase_js_v2.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7375,12 +7375,7 @@ functions:
73757375
```js
73767376
supabase
73777377
.channel('room1')
7378-
.send({
7379-
type: 'broadcast',
7380-
event: 'cursor-pos',
7381-
payload: { x: Math.random(), y: Math.random()
7382-
},
7383-
})
7378+
.httpSend('cursor-pos', { x: Math.random(), y: Math.random() })
73847379
```
73857380
- id: get-channels
73867381
title: getChannels()

0 commit comments

Comments
 (0)