Skip to content

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

realtime: remove broadcast from footer (#38187)

Filipe Cabaçob2529831f6b8
diff --git a/apps/www/components/Footer/index.tsx b/apps/www/components/Footer/index.tsx
index 21d5241eab2..d4c64ebc021 100644
--- a/apps/www/components/Footer/index.tsx
+++ b/apps/www/components/Footer/index.tsx
@@ -29,15 +29,7 @@ const Footer = (props: Props) => {
useEffect(() => {
const channel = supabase.channel('footer')
if (channel.state === REALTIME_CHANNEL_STATES.closed) {
- channel.subscribe((status: string) => {
- if (status == 'SUBSCRIBED') {
- channel.send({
- type: 'broadcast',
- event: 'footer_subscribed',
- payload: { ts: Date.now() },
- })
- }
- })
+ channel.subscribe()
}
return () => {
channel.unsubscribe()