Expand description
Arpy Axum
Example
#[derive(MsgId, Serialize, Deserialize, Debug)]
struct MyAdd(u32, u32);
impl FnRemote for MyAdd {
type Output = u32;
}
async fn my_add(args: MyAdd) -> u32 {
args.0 + args.1
}
let ws = WebSocketRouter::new().handle(my_add);
Router::new()
.http_rpc_route("/http", my_add)
.ws_rpc_route("/ws", ws, 1000);
Modules
- Building blocks for writing HTTP handlers.
Traits
- Extension trait to add RPC routes. See module level documentation for an example.
Functions
- SSE Handler.