View Source NodeJS.Supervisor (NodeJS v3.1.0)

NodeJS.Supervisor

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

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.

@spec start_link(keyword()) :: {:ok, pid()} | {:error, any()}

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.
@spec stop() :: :ok

Stops the Supervisor and underlying node service