import { supabase } from "https://dotland.deno.dev/x/live@1.63.12/deps.ts";
const { RealtimeClient } = supabase;
Properties
channels: RealtimeChannel[]
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.