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

x/grm/mod.ts>extensions.PromisedNetSockets

MTProto API Client for Deno 🦕
Go to Latest
class extensions.PromisedNetSockets
import { extensions } from "https://deno.land/x/grm@0.5.2/mod.ts";
const { PromisedNetSockets } = extensions;

Constructors

new
PromisedNetSockets(proxy?: ProxyInterface)

Properties

private
optional
canRead: boolean | Promise<boolean>
private
optional
client: Socket
private
closed: boolean
private
optional
proxy: ProxyInterface
private
resolveRead: ((value?: any) => void) | undefined
private
stream: Buffer

Methods

connect(port: number, ip: string)
read(number: number)
readExactly(number: number)
write(data: Buffer)