Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Advanced Web Composition for Future
Latest
interface WebSocketClient
implements EventEmitter
import { type WebSocketClient } from "https://deno.land/x/ogone@revb3/lib/websocket/index.ts";

Properties

isClosed: boolean | undefined

Methods

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