Skip to main content

handle

Function handle 

Source
pub async fn handle(message: &Value, host: &Host) -> Option<Value>
Expand description

Answer one JSON-RPC message.

Returns None for a notification — a message with no id gets no reply, which is the one rule of the protocol that a hand-written server usually gets wrong.