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

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

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

Registers a callback for connection state change event.

Examples

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

Parameters

callback: Function

A function to be called when the event occurs.