Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/live/engine/releases/realtime.ts>RealtimeReleaseProvider

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
interface RealtimeReleaseProvider
import { type RealtimeReleaseProvider } from "https://deno.land/x/live@1.60.0/engine/releases/realtime.ts";

Properties

optional
unsubscribe: () => void

Methods

get(includeArchived: boolean): PromiseLike<{ data: CurrResolvables | null; error: any; }>
subscribe(onChange: (arg: CurrResolvables) => void, cb: (status: `${supabase.REALTIME_SUBSCRIBE_STATES}`, err?: Error) => void): void

When called, receives the onChange function that will be called when the release has changed, and the cb function that will be called when the subscription state change. The cb function can be used to determine if it should fallsback to background updates or not.