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

x/grm/mod.ts>network.Connection

MTProto API Client for Deno 🦕
Go to Latest
class network.Connection
Re-export
import { network } from "https://deno.land/x/grm@0.6.0/mod.ts";
const { Connection } = network;

Constructors

new
Connection(unnamed 0: ConnectionInterfaceParams)

Properties

private
_recvCancelPromise: Promise<CancelHelper>
private
optional
_recvCancelResolve: (value: CancelHelper) => void
private
optional
_recvTask: Promise<void>
private
_sendCancelPromise: Promise<CancelHelper>
private
optional
_sendCancelResolve: (value: CancelHelper) => void
private
optional
_sendTask: Promise<void>
protected
_codec: any
protected
_obfuscation: any
_connected: boolean
_dcId: number
readonly
_ip: string
_log: Logger
readonly
_port: number
optional
_proxy: ProxyInterface
_recvArray: AsyncQueue
_sendArray: AsyncQueue
_testServers: boolean
optional
PacketCodecClass: PacketCodec