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

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

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
method supabase.RealtimeClient.prototype.disconnect
Re-export
import { supabase } from "https://deno.land/x/live@1.57.0/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.