Skip to main content

remote

Function remote 

Source
pub fn remote(addr: &str, request: &Value) -> Result<Value, String>
Expand description

Run one request on the peer at addr and return its reply. Uses a fresh connection (authenticating if a token is set), so it is independent of the long-lived federation link. Intended for RPC commands, not streams.