Skip to content

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

chore: revert realtime-js v2 docs

Wen Bo Xie4a8292e3319f
diff --git a/spec/supabase_js_v2_legacy.yml b/spec/supabase_js_v2_legacy.yml
index 44e9c85b242..18bf382b85d 100644
--- a/spec/supabase_js_v2_legacy.yml
+++ b/spec/supabase_js_v2_legacy.yml
@@ -1242,9 +1242,9 @@ pages:
.subscribe()
```
- removeChannel():
- title: 'removeChannel()'
- $ref: '@supabase/supabase-js.index.SupabaseClient.removeChannel'
+ removeSubscription():
+ title: 'removeSubscription()'
+ $ref: '@supabase/supabase-js.index.SupabaseClient.removeSubscription'
notes: |
- Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed.
examples:
@@ -1252,12 +1252,12 @@ pages:
isSpotlight: true
js: |
```js
- supabase.removeChannel(mySubscription)
+ supabase.removeSubscription(mySubscription)
```
- removeAllChannels():
- title: 'removeAllChannels()'
- $ref: '@supabase/supabase-js.index.SupabaseClient.removeAllChannels'
+ removeAllSubscriptions():
+ title: 'removeAllSubscriptions()'
+ $ref: '@supabase/supabase-js.index.SupabaseClient.removeAllSubscriptions'
notes: |
- Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed.
examples:
@@ -1265,18 +1265,18 @@ pages:
isSpotlight: true
js: |
```js
- supabase.removeAllChannels()
+ supabase.removeAllSubscriptions()
```
- getChannels():
- title: 'getChannels()'
- $ref: '@supabase/supabase-js.index.SupabaseClient.getChannels'
+ getSubscriptions():
+ title: 'getSubscriptions()'
+ $ref: '@supabase/supabase-js.index.SupabaseClient.getSubscriptions'
examples:
- name: Get all subscriptions
isSpotlight: true
js: |
```js
- const subscriptions = supabase.getChannels()
+ const subscriptions = supabase.getSubscriptions()
```
storage.listBuckets():