import { supabase } from "https://deno.land/x/live@1.56.1/deps.ts";
const { RealtimeChannel } = supabase;
Creates an event handler that listens to changes.
Parameters
callback: (payload: RealtimePresenceJoinPayload<T>) => void
Parameters
callback: (payload: RealtimePresenceLeavePayload<T>) => void
Parameters
filter: RealtimePostgresChangesFilter<`${REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.ALL}`>
callback: (payload: RealtimePostgresChangesPayload<T>) => void
Parameters
filter: RealtimePostgresChangesFilter<`${REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.INSERT}`>
callback: (payload: RealtimePostgresInsertPayload<T>) => void
Parameters
filter: RealtimePostgresChangesFilter<`${REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.UPDATE}`>
callback: (payload: RealtimePostgresUpdatePayload<T>) => void
Parameters
filter: RealtimePostgresChangesFilter<`${REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.DELETE}`>
callback: (payload: RealtimePostgresDeletePayload<T>) => void
The following is placed here to display on supabase.com/docs/reference/javascript/subscribe.
Parameters
Custom object specific to the Realtime feature detailing which payloads to receive.
Parameters
callback: (payload: { type: `${REALTIME_LISTEN_TYPES.BROADCAST}`; event: string; payload: T; }) => void