Methods
readExactly
- readExactly(number: number): Promise<Buffer>
Parameters
Returns Promise<Buffer>
read
- read(number: number): Promise<Buffer>
Parameters
Returns Promise<Buffer>
readAll
- readAll(): Promise<Buffer>
getWebSocketLink
- getWebSocketLink(ip: string, port: number, testServers: boolean): string
Parameters
ip: string
port: number
testServers: boolean
Returns string
connect
- connect(port: number, ip: string, testServers?: boolean): Promise<unknown>
Parameters
port: number
ip: string
testServers: boolean = false
Returns Promise<unknown>
write
- write(data: Buffer): void