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

x/deno/cli/tsc/dts/lib.dom.d.ts>WebSocket

A modern runtime for JavaScript and TypeScript.
Latest
variable WebSocket
import { WebSocket } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.dom.d.ts";

type

{ prototype: WebSocket; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSING: 2; readonly CLOSED: 3; new (url: string | URL, protocols?: string | string[]): WebSocket; }