Skip to content

Commit b252983

Browse files
authored
realtime: remove broadcast from footer (supabase#38187)
the tests we were running were a success and we no longer require to broadcast. we will keep the logic as we might want to dog food other ideas in the near future
1 parent 8459d18 commit b252983

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

apps/www/components/Footer/index.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,7 @@ const Footer = (props: Props) => {
2929
useEffect(() => {
3030
const channel = supabase.channel('footer')
3131
if (channel.state === REALTIME_CHANNEL_STATES.closed) {
32-
channel.subscribe((status: string) => {
33-
if (status == 'SUBSCRIBED') {
34-
channel.send({
35-
type: 'broadcast',
36-
event: 'footer_subscribed',
37-
payload: { ts: Date.now() },
38-
})
39-
}
40-
})
32+
channel.subscribe()
4133
}
4234
return () => {
4335
channel.unsubscribe()

0 commit comments

Comments
 (0)