Skip to main content

handle_message

Function handle_message 

Source
pub fn handle_message(line: &str) -> Option<Value>
Expand description

Handle one JSON-RPC message. Returns Some(response) for requests and None for notifications (and for messages that need no reply).

Exposed for integration tests so the protocol can be driven without stdio.