import { supabase } from "https://deno.land/x/live@1.74.1/deps.ts";
const { RealtimeClient } = supabase;
Properties
Methods
channel(topic: string, params?: RealtimeChannelOptions): RealtimeChannel
log(): void
kind: string,
msg: string,
data?: any,
Logs the message.
For customized logging, this.logger
can be overridden.
push(data: RealtimeMessage): void
Push out a message if the socket is connected.
If the socket is not connected, the message gets enqueued within a local buffer, and sent out when a connection is next established.
removeChannel(channel: RealtimeChannel): Promise<RealtimeRemoveChannelResponse>
Unsubscribes and removes a single channel
setAuth(token: string | null): void
Sets the JWT access token used for channel subscription authorization and Realtime RLS.