File size: 401 Bytes
9844ee9
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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;
}