NodeJS v2.0.0 NodeJS.Supervisor View Source
NodeJS.Supervisor
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Starts the Node.js supervisor and workers.
Stops the Supervisor and underlying node service
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Specs
Starts the Node.js supervisor and workers.
Options
:name
- (optional) The name used for supervisor registration. Defaults to Elixir.NodeJS.Supervisor.:path
- (required) The path to your Node.js code's root directory.:pool_size
- (optional) The number of workers. Defaults to 4.
Specs
stop() :: :ok
Stops the Supervisor and underlying node service