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

x/mtkruto/connection/1_connection_tcp.ts>ConnectionTCP

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class ConnectionTCP
implements Connection
import { ConnectionTCP } from "https://deno.land/x/mtkruto@0.2.50/connection/1_connection_tcp.ts";

Constructors

new
ConnectionTCP(hostname: string, port: number)

Properties

optional
callback: Connection["callback"]
connect: Deno.connect
readonly
connected: boolean
optional
stateChangeHandler: Connection["stateChangeHandler"]

Methods

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