pub async fn start_server(
node: Arc<Node>,
port: u16,
ui_notify_rx: UnboundedReceiver<UiNotification>,
) -> Result<()>Expand description
Starts the web server.
This function initializes an Axum server, sets up API and WebSocket routes, serves static web UI assets, and forwards UI notifications to connected WebSocket clients.
§Arguments
node- A shared reference to the application’s coreNode.port- The port to bind the web server to.ui_notify_rx- Receiver for UI notifications from the core application.
§Errors
Returns an error if the server fails to bind or run.