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

x/mtkruto/2_connection.ts>ConnectionWebSocket

Cross-runtime JavaScript library for building Telegram clients
Latest
class ConnectionWebSocket
implements Connection
import { ConnectionWebSocket } from "https://deno.land/x/mtkruto@0.6.2/2_connection.ts";

Constructors

new
ConnectionWebSocket(url: string)

Properties

readonly
connected: boolean
optional
stateChangeHandler: Connection["stateChangeHandler"]

Methods

read(p: Uint8Array)
write(p: Uint8Array)