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

x/mtkruto/connection/0_connection.ts>Connection

Cross-runtime JavaScript library for building Telegram clients
Latest
interface Connection
import { type Connection } from "https://deno.land/x/mtkruto@0.6.2/connection/0_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>