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

x/grm/src/mod.ts>extensions.PromisedWebSockets

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

Constructors

new
PromisedWebSockets()

Properties

private
optional
canRead: boolean | Promise<boolean>
private
client: w3cwebsocket | undefined
private
closed: boolean
private
resolveRead: ((value?: any) => void) | undefined
private
stream: Buffer
private
optional
website: string

Methods

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