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

x/mtkruto/connection/1_connection_web_socket.ts>ConnectionWebSocket

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class ConnectionWebSocket
import { ConnectionWebSocket } from "https://deno.land/x/mtkruto@0.0.982/connection/1_connection_web_socket.ts";

Constructors

new
ConnectionWebSocket(url: string | URL)

Properties

private
buffer: Array<number>
private
connectionError: Event | ErrorEvent | null
private
isConnecting: boolean
private
nextResolve: [number, () => void] | null
private
rMutex: Mutex
private
webSocket: WebSocket
private
wMutex: Mutex
readonly
connected

Methods

private
reinitWs(url: string | URL)
read(p: Uint8Array)
write(p: Uint8Array)