Skip to main content

Module cli

Module cli 

Source
Expand description

Native CLI JSON-RPC client wrapper for rings subcommands.

Wraps rings_rpc::jsonrpc::Client for a running rings-node daemon. Construct unauthenticated clients with Client::new or Bearer-authenticated clients with Client::with_api_token.

§Capabilities

  • Establish WebRTC connections via HTTP signaling, seed documents, DHT routing, or manual SDP offers/answers.
  • Send namespace-scoped backend messages over the overlay.
  • Publish and subscribe to DHT data topics.
  • Register and look up services in the DHT.
  • Inspect swarm peers, Chord ring topology, and storage state.

Structs§

Client
Wrap json_client send request between nodes or browsers.
ClientOutput
Wrap client output contain raw result and humanreadable display.

Enums§

OfferReplyKind
Whether the payload returned by answerOffer is an answer (ConnectNodeReport) or a counter-offer (ConnectNodeSend).

Functions§

ensure_accept_answer_is_not_counter_offer
Reject an encoded ConnectNodeSend counter-offer passed to connect accept with a clear operator message pointing to rings connect answer.
format_answer_offer_output
Build the ClientOutput for an encoded answerOffer reply.