Skip to main content

JSON-RPC methods & notifications

Generated from crates/versionx-daemon/src/protocol.rs.

The versiond daemon speaks JSON-RPC 2.0 over a per-user local socket (Unix Domain Socket on Linux/macOS; named pipe on Windows). Messages are length-prefixed (4-byte BE) with a maximum frame size of 2 MiB. See JSON-RPC daemon for the transport overview and framing details.

Methods

ConstantMethod nameDescription
BUMP_PROPOSEbump.propose
PINGping
SERVER_INFOserver.info
SHUTDOWNserver.shutdown
SUBSCRIBEsubscribe
UNSUBSCRIBEunsubscribe
WORKSPACE_GRAPHworkspace.graph
WORKSPACE_LISTworkspace.list
WORKSPACE_STATUSworkspace.status

Notifications

ConstantNotification nameDescription
LOGlog
PROGRESSprogress
SHUTTING_DOWNserver.shutting_down
WORKSPACE_CHANGEDworkspace.changed

Error codes

Standard JSON-RPC 2.0 error codes (-32700 parse error, -32600 invalid request, -32601 method not found, -32602 invalid params, -32603 internal error) apply. Application-level codes are reserved in the -32000..=-32099 range. Current in-use codes:

CodeMeaning
-32001Shutting down.
-32002Busy.
-32003Workspace failed.

See also