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

x/blocks/deps.ts>supabase.RealtimeClient#disconnect

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
method supabase.RealtimeClient.prototype.disconnect
Re-export
import { supabase } from "https://deno.land/x/blocks@1.28.0-beta.4/deps.ts";
const { RealtimeClient } = supabase;

Disconnects the socket.

Parameters

optional
code: number

A numeric status code to send on disconnect.

optional
reason: string

A custom reason for the disconnect.