Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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