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

x/websocket/lib/websocket.ts>WebSocketClient

🦕 A simple WebSocket library like ws of node.js library for deno
Latest
interface WebSocketClient
implements EventEmitter
import { type WebSocketClient } from "https://deno.land/x/websocket@v0.1.4/lib/websocket.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