NodeAppModule

PackageAxial.Hosting.Node
Node.js signal, argument, and process-exit integration for root Flow applications.

Summary

NameSignatureSynopsis
argumentsNodeApp.arguments ()Gets command-line arguments after the Node executable and script path.
exitCodeNodeApp.exitCode exitMaps a final application exit to conventional Node process exit codes.
startNodeApp.start describeError environment applicationStarts a Node application, translating SIGINT and SIGTERM into coordinated stop and publishing its exit code.
runNodeApp.run describeError environment applicationStarts a Node application and waits for its final exit.

arguments

NodeApp.arguments ()
Member
Gets command-line arguments after the Node executable and script path.

Parameters

NameTypeDescription
unit

Returns

string list

exitCode

NodeApp.exitCode exit
Member
Maps a final application exit to conventional Node process exit codes.

Parameters

NameTypeDescription
exitExit<'value, 'error>

Returns

int

start

NodeApp.start describeError environment application
Member
Starts a Node application, translating SIGINT and SIGTERM into coordinated stop and publishing its exit code.

Parameters

NameTypeDescription
describeError'error -> string
environment'env
applicationFlow<'env, 'error, 'value>

Returns

AppHandle<'error, 'value>

run

NodeApp.run describeError environment application
Member
Starts a Node application and waits for its final exit.

Parameters

NameTypeDescription
describeError'error -> string
environment'env
applicationFlow<'env, 'error, 'value>

Returns

Async<Exit<'value, 'error>>