UNPKG

node-network-devtools

Version:

Inspecting Node.js's Network with Chrome DevTools

22 lines (21 loc) 728 B
import { RequestDetail, ___dirname, RegisterOptions } from '../common'; import { IncomingMessage } from 'http'; /** * @flow initRequest -> registerRequest -> updateRequest -> endRequest */ export type RequestType = 'initRequest' | 'registerRequest' | 'updateRequest' | 'endRequest'; export declare class MainProcess { private ws; private options; private cp?; constructor(props: RegisterOptions & { key: string; }); private openProcess; send(data: any): Promise<void>; sendRequest(type: RequestType, request: RequestDetail): this; responseRequest(id: string, response: IncomingMessage): void; dispose(): Promise<void>; } export { __dirname }; //# sourceMappingURL=fork.d.ts.map