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

x/gauntlet/imports/deno-websocket.ts>StandardWebSocketClient

Work-in-progress front-end tool which does put a smile on my face
Latest
class StandardWebSocketClient
implements WebSocketClient
extends EventEmitter
import { StandardWebSocketClient } from "https://deno.land/x/gauntlet@v0.0.9/imports/deno-websocket.ts";

Constructors

new
StandardWebSocketClient(endpoint?: string)

Properties

readonly
isClosed: boolean | undefined
optional
webSocket: WebSocket

Methods

close(code?, reason?: string): Promise<void>
closeForce(): void
ping(message?: string | Uint8Array)
send(message: string | Uint8Array)