Skip to main content
Module

x/gustwind/server-deps.ts>websockets.WebSocketAcceptedClient

🐳💨 – Deno powered JSON oriented site generator
Go to Latest
class websockets.WebSocketAcceptedClient
implements WebSocketClient
extends GenericEventEmitter<DefaultAcceptedClientEventTypes>
import { websockets } from "https://deno.land/x/gustwind@v0.31.0/server-deps.ts";
const { WebSocketAcceptedClient } = websockets;

Constructors

new
WebSocketAcceptedClient(sock: DenoWebSocketType)

Properties

readonly
isClosed: boolean | undefined
webSocket: DenoWebSocketType

Methods

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