@whiskeysockets/baileys
Version:
A WebSockets library for interacting with WhatsApp Web
13 lines (12 loc) • 436 B
TypeScript
import WebSocket from 'ws';
import { AbstractSocketClient } from './types';
export declare class WebSocketClient extends AbstractSocketClient {
protected socket: WebSocket | null;
get isOpen(): boolean;
get isClosed(): boolean;
get isClosing(): boolean;
get isConnecting(): boolean;
connect(): Promise<void>;
close(): Promise<void>;
send(str: string | Uint8Array, cb?: (err?: Error) => void): boolean;
}