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."))
socket.onOpen(() => console.log("Socket opened."))