Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WebSocketLikeConstructor

import type { WebSocketLikeConstructor } from "https://esm.sh/@supabase/supabase-js@2.89.0/dist/index.d.mts";

Minimal WebSocket constructor interface that RealtimeClient can work with. Supply a compatible implementation (native WebSocket, ws, etc) when running outside the browser.

interface WebSocketLikeConstructor {
[key: string]: any;
new (address: string | URL, subprotocols?: string | string[] | undefined): WebSocketLike;
}

§Index Signatures

§
[key: string]: any

§Methods

§
new (address: string | URL, subprotocols?: string | string[] | undefined): WebSocketLike
[src]