Skip to main content
Module

x/mtkruto/mod.ts>ConnectionWebSocket

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class ConnectionWebSocket
Re-export
import { ConnectionWebSocket } from "https://deno.land/x/mtkruto@0.1.100/mod.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
wasConnected: boolean
private
webSocket: WebSocket
private
wMutex: Mutex
readonly
connected

Methods

private
initWs()
read(p: Uint8Array)
write(p: Uint8Array)