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

x/ogone/lib/websocket/index.ts>StandardWebSocketClient

Advanced Web Composition for Future
Latest
class StandardWebSocketClient
implements WebSocketClient
extends EventEmitter
import { StandardWebSocketClient } from "https://deno.land/x/ogone@revb3/lib/websocket/index.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)