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.
Go to Latest
variable WebSocket
import { WebSocket } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.dom.d.ts";

type

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