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

x/mtkruto/2_connection.ts>Connection

Cross-runtime JavaScript library for building Telegram clients
Latest
interface Connection
Re-export
import { type Connection } from "https://deno.land/x/mtkruto@0.6.3/2_connection.ts";

Properties

optional
stateChangeHandler: (connected: boolean) => void
optional
callback: { read(count: number): void; write(count: number): void; }

Methods

getter
connected(): boolean
open(): MaybePromise<void>
write(p: Uint8Array): MaybePromise<void>
close(): MaybePromise<void>
read(p: Uint8Array): MaybePromise<void>