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

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)