WebSocketFactory
Utilities for creating WebSocket instances across runtimes.
class WebSocketFactory { }
private constructor();
static private detectEnvironment;
static getWebSocketConstructor(): WebSocket;
static isWebSocketSupported(): boolean;
§Static Properties
§Static Methods
§
Creates a WebSocket using the detected constructor.
@example
const socket = WebSocketFactory.createWebSocket('wss://realtime.supabase.co/socket')