Skip to main content
Module

x/denyard/deps.ts>StandardWebSocketClient

Lanyard API, Websocket wrapper for Deno
Latest
class StandardWebSocketClient
implements WebSocketClient
extends EventEmitter
import { StandardWebSocketClient } from "https://deno.land/x/denyard@0.1.0/deps.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)