Skip to main content

run_controller

Function run_controller 

Source
pub fn run_controller(bind: &str, port: u16) -> i32
Expand description

Main entry point — back-compat wrapper that delegates to spawn_controller + ControllerHandle::run_repl_blocking. Preserves the historical CLI behaviour: bind, accept agents in a background thread, run the interactive REPL on the main thread, cleanly join the accept thread on REPL exit. Scripts that want non-REPL programmatic access use spawn_controller directly.