@wppconnect-team/wppconnect
Version:
WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligen
12 lines (11 loc) • 401 B
TypeScript
import { ConnectionTransport } from 'puppeteer';
import WebSocket from 'ws';
export declare class WebSocketTransport implements ConnectionTransport {
static create(url: string, timeout?: number): Promise<WebSocketTransport>;
private _ws;
onmessage?: (message: string) => void;
onclose?: () => void;
constructor(ws: WebSocket);
send(message: string): void;
close(): void;
}