musli-web
This crate provides a set of utilities for working with various web-based APIs and Müsli.
It includes support for:
axumJsonintegration, allowing you to use Müsli for serialization and deserialization in your Axum applications.axum[ws::Server] integration, allowing you to build the server side of the websocket protocol this crate implements.yewintegration, allowing you to use Müsli for communicating with websocket clients using a well-defined API.
Examples
apiis the example crate which defines API types shared between server and client.serveris the axum-based server implementation.clientis the yew client communicating with the server.
You can run the client like this:
&&
You can run the server like this:
&&