NodeJS v1.1.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

Link to this function

call(module, args \\ [], opts \\ []) View Source

Link to this function

call!(module, args \\ [], opts \\ []) View Source

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

start_link(opts \\ []) View Source
start_link(keyword()) :: {:ok, pid()} | {:error, any()}

Starts the Node.js supervisor and workers.

Options

  • :path - (required) The path to your Node.js code's root directory.
  • :pool_size - (optional) The number of workers. Defaults to 4.

Stops the Supervisor and underlying node service