mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-27 14:16:34 +00:00
20 lines
679 B
TypeScript
20 lines
679 B
TypeScript
|
import { Duplex, Transform } from 'readable-stream';
|
||
|
import { IClientOptions } from './client';
|
||
|
export declare function writev(chunks: {
|
||
|
chunk: any;
|
||
|
encoding: string;
|
||
|
}[], cb: (err?: Error) => void): void;
|
||
|
export declare class BufferedDuplex extends Duplex {
|
||
|
socket: WebSocket;
|
||
|
private proxy;
|
||
|
private isSocketOpen;
|
||
|
private writeQueue;
|
||
|
constructor(opts: IClientOptions, proxy: Transform, socket: WebSocket);
|
||
|
_read(size?: number): void;
|
||
|
_write(chunk: any, encoding: string, cb: (err?: Error) => void): void;
|
||
|
_final(callback: (error?: Error) => void): void;
|
||
|
socketReady(): void;
|
||
|
private writeToProxy;
|
||
|
private processWriteQueue;
|
||
|
}
|