Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Very Popular
Go to Latest
method supabase.RealtimeClient.prototype.disconnect
Re-export
import { supabase } from "https://deno.land/x/deco@1.75.1/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.