Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class PromisedNetSockets
import { PromisedNetSockets } from "https://deno.land/x/grm@0.5.1/src/extensions/promised_net_sockets.ts";

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)