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

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

An isomorphic Javascript client for Supabase Realtime server.
Latest
method default.prototype.disconnect
import { default } from "https://deno.land/x/realtime@1.2.0/src/RealtimeClient.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; }>