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

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

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

Registers a callbacks for connection state change events.

Examples

socket.onOpen(() => console.log("Socket closed."))

Parameters

callback: Function

A function to be called when the event occurs.