UNPKG

438 BTypeScriptView Raw
1import { Buffer } from 'buffer';
2import { TcpSocket } from './tcp-socket';
3export 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}