NodeAppModule
PackageAxial.Hosting.Node
Node.js signal, argument, and process-exit integration for root Flow applications.
Summary
| Name | Signature | Synopsis |
|---|
| Operations |
| arguments | NodeApp.arguments () | Gets command-line arguments after the Node executable and script path. |
| exitCode | NodeApp.exitCode exit | Maps a final application exit to conventional Node process exit codes. |
| start | NodeApp.start describeError environment application | Starts a Node application, translating SIGINT and SIGTERM into coordinated stop and publishing its exit code. |
| run | NodeApp.run describeError environment application | Starts a Node application and waits for its final exit. |
Operations
kind:member
NodeApp.arguments ()
MemberGets command-line arguments after the Node executable and script path.
kind:member
NodeApp.exitCode exit
MemberMaps a final application exit to conventional Node process exit codes.
Parameters
| Name | Type | Description |
|---|
| exit | Exit<'value, 'error> | |
kind:member
NodeApp.start describeError environment application
Member
Starts a Node application, translating SIGINT and SIGTERM into coordinated stop and publishing its exit code.
Parameters
| Name | Type | Description |
|---|
| describeError | 'error -> string | |
| environment | 'env | |
| application | Flow<'env, 'error, 'value> | |
Returns
AppHandle<'error, 'value>
kind:member
NodeApp.run describeError environment application
MemberStarts a Node application and waits for its final exit.
Parameters
| Name | Type | Description |
|---|
| describeError | 'error -> string | |
| environment | 'env | |
| application | Flow<'env, 'error, 'value> | |
Returns
Async<Exit<'value, 'error>>