class LazyWebSocket
implements WebSocketLike
import { LazyWebSocket } from "https://deno.land/x/lophus@0.0.13/core/websockets.ts";
A lazy WebSocket that creates a connection when it is needed. It will also wait for the webSocket to be ready before sending any data.
Constructors
new
LazyWebSocket(url: string | URL, protocols?: string | string[])