1 | import { Buffer } from 'buffer';
|
2 | import { TcpSocket } from './tcp-socket';
|
3 | export declare class JsonSocket extends TcpSocket {
|
4 | private contentLength;
|
5 | private buffer;
|
6 | private readonly stringDecoder;
|
7 | private readonly delimiter;
|
8 | protected handleSend(message: any, callback?: (err?: any) => void): void;
|
9 | protected handleData(dataRaw: Buffer | string): void;
|
10 | private handleMessage;
|
11 | private formatMessageData;
|
12 | }
|