node-appctl
NodeJS IPC Tool
Command Format
This package provides simple process intercommunication mechanism via TCP or IPC. Communication performed using JSON commands:
Where command
is the command name, and data
is the command payload (optional).
Server
const appctl = ; // For TCP connection:const server = appctl; // -OR- For IPC connection:const server = appctl; server; // Now the server is listening for the `getSomeValue` command,// and will send registered function response to the client.
Client
const appctl = ; // For TCP connection:const client = appctl; // -OR- For IPC connection:const client = appctl; client ;