UNPKG

821 BTypeScriptView Raw
1/// <reference types="node" />
2import * as ee from 'events';
3import { DebugProtocol } from 'vscode-debugprotocol';
4export declare class ProtocolServer extends ee.EventEmitter {
5 private static TWO_CRLF;
6 private _rawData;
7 private _contentLength;
8 private _sequence;
9 private _writableStream;
10 private _pendingRequests;
11 constructor();
12 start(inStream: NodeJS.ReadableStream, outStream: NodeJS.WritableStream): void;
13 stop(): void;
14 sendEvent(event: DebugProtocol.Event): void;
15 sendResponse(response: DebugProtocol.Response): void;
16 sendRequest(command: string, args: any, timeout: number, cb: (response: DebugProtocol.Response) => void): void;
17 protected dispatchRequest(request: DebugProtocol.Request): void;
18 private _emitEvent;
19 private _send;
20 private _handleData;
21}