Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/supabase/src/lib/SupabaseRealtimeClient.ts>SupabaseRealtimeClient

An isomorphic Javascript client for Supabase.
Go to Latest
class SupabaseRealtimeClient
import { SupabaseRealtimeClient } from "https://deno.land/x/supabase@1.3.1/src/lib/SupabaseRealtimeClient.ts";

Constructors

new
SupabaseRealtimeClient(
headers: { [key: string]: string; },
schema: string,
tableName: string,
)

Methods

private
getPayloadRecords(payload: any)
on(event: SupabaseEventTypes, callback: (payload: SupabaseRealtimePayload<any>) => void)

The event you want to listen to.

subscribe(callback?: Function)

Enables the subscription.