Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

A modern runtime for JavaScript and TypeScript.
Go to Latest
variable WebSocket
import { WebSocket } from "https://deno.land/x/deno@v1.40.5/cli/tsc/dts/lib.webworker.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; }