node library

Node.js runtime metadata and the native listener entrypoint for Routed.

Classes

NodeRuntimeEnvironment
Supplies the process environment exposed by a Node-family host.
NodeRuntimeExtension
Host-native Node request, response, and server handles.
RoutedNodeCapabilities
Capabilities declared by one host invocation.
RoutedNodeContext
Runtime-scoped host context carried through a Routed request.
RoutedNodeExtension
A typed lookup for host-owned request context values.
RoutedNodeLifecycleEvent
Host lifecycle event published through Routed's existing EventManager.
RoutedNodeRuntimeInfo
Common runtime metadata exposed by a host adapter.

Enums

RoutedNodeEntryModel
Whether a host owns a long-lived listener or invokes a fetch export.
RoutedNodeLifecyclePhase
Lifecycle phases emitted by a routed_node host.
RoutedNodeRuntime
Runtime families supported by routed_node.

Constants

nodeCapabilities → const RoutedNodeCapabilities
Capabilities advertised by the Node listener adapter.

Functions

keepNodeEventLoopAlive({bool persistent = true}) → void
VM / non-JS stub: real Node bind requires compiling this package for a JavaScript runtime (dart compile js / dart2wasm with Node host).
publishRoutedNodeLifecycle(Engine engine, RoutedNodeLifecycleEvent event) → void
Publishes a host lifecycle event when the engine has an EventManager.
serveNode(Engine engine, {String host = '127.0.0.1', int? port, bool echo = true}) Future<ServerHandle>
Boots a Routed engine using the Node.js HTTP server transport.