Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
class WebSocket
import { WebSocket } from "https://deno.land/x/darkflare@v5.0.3/types/mod.d.ts";

Constructors

new
WebSocket(url: string, protocols?: string[] | string)

Properties

readonly
extensions: string | null
readonly
protocol: string | null
readonly
readyState: number
readonly
url: string | null

Methods

accept(): void
close(code?: number, reason?: string): void
send(message: ArrayBuffer | ArrayBufferView | string): void

Static Properties

readonly
READY_STATE_CLOSED: number
readonly
READY_STATE_CLOSING: number
readonly
READY_STATE_CONNECTING: number
readonly
READY_STATE_OPEN: number