UNPKG

onemon

Version:

Run a npm script as a deamon, once

17 lines (16 loc) 429 B
/// <reference types="node" /> import { EventEmitter } from 'events'; interface IPCClientOptions { socketPath: string; } export declare class IPCClient extends EventEmitter { private socket; private socketPath; private encoder; private closing; constructor(options: IPCClientOptions); connect(): Promise<void>; close(): Promise<void>; send(topic: string, message?: string): void; } export {};