architect-socket-server
architect socket server plugin
Installation
npm install --save architect-socket-server
Config Format
"packagePath": "architect-socket-server" port: processenvPORT || 1337 host: processenvIP || "0.0.0.0"
Usage
Boot Architect :
var path = ;var architect = ; var configPath = path;var config = architect; architect;
Configure Architect with config.js
:
moduleexports = packagePath: "architect-socket-server" port: processenvPORT || 1337 host: processenvIP || "0.0.0.0";
And in your index.js
:
var path = ;var architect = ; var configPath = path;var config = architect; architect;
Options
- port : tcp port to listent to
- host : host to listen to
- socket: unix socket to listen
- interface : network interface name to listen to (must match
os.networkInterfaces
) - family : interface address family to listen to (with
interface
).