Skip to main content

handle_rpc

Function handle_rpc 

Source
pub fn handle_rpc(req: &Value, db_path: &str) -> Option<Value>
Expand description

Handle one JSON-RPC message. Returns the response for a request, or None for a notification (a message with no id, which must not be answered). Tool calls touch the trace store at db_path; everything else is pure.