import { supabase } from "https://dotland.deno.dev/x/live@1.63.12/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
Parameters
callback: (payload: { type: `${REALTIME_LISTEN_TYPES.BROADCAST}`; event: string; payload: T; }) => void