pub fn dispatch<T: Transport>(
transport: &mut T,
client: &mut Option<SyncClient>,
effects: &mut CreateEffects,
method: &str,
params: &Value,
) -> Result<Value, CommandError>Expand description
Dispatch one command against the client instance over transport.
The create command installs a fresh SyncClient into client and
returns its parsed CreateEffects in the Ok result via effects; every
other command mutates the existing instance. Errors come back as the
driver-protocol (code, message) pair.
Generic over T: Transport so the shim (host-inverted transport) and the
FFI core (native HTTP+WS transport) share this exact router.