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

x/realtime/src/index.ts>RealtimeClient#disconnect

An isomorphic Javascript client for Supabase Realtime server.
Latest
method RealtimeClient.prototype.disconnect
Re-export
import { RealtimeClient } from "https://deno.land/x/realtime@1.2.0/src/index.ts";

Disconnects the socket.

Parameters

optional
code: number

A numeric status code to send on disconnect.

optional
reason: string

A custom reason for the disconnect.

Returns

Promise<{ error: Error | null; data: boolean; }>