Module freenet_stdlib::client_api
source · Expand description
A node client API. Intended to be used from applications (web or otherwise) using the node capabilities to execute contract, delegate, etc. instructions and communicating over the network.
Communication, independent of the transport, revolves around the ClientRequest
and HostResponse
types.
Currently the clients available are:
websocket
:regular
(native): Using TCP transport directly, for native applications programmed in Rust.browser
(wasm): Via wasm-bindgen (and by extension web-sys). (In order to use this client from JS/Typescript refer to the Typescript std lib).
Structs
Enums
- A request from a client application to the host.
- Errors that may happen while interacting with contracts.
- Errors that may happen while interacting with delegates.
- A response to a previous
ClientRequest