infinity-bridge-host 0.1.1

Host-side WebSocket server for infinity-bridge — async tokio, no framework dependency
Documentation
1
2
3
4
5
6
7
8
9
use infinity_bridge_wire::HelloPayload;
use tokio::sync::mpsc;
use tokio::time::Instant;

pub(crate) struct Client {
    pub tx: mpsc::UnboundedSender<String>,
    pub hello: Option<HelloPayload>,
    pub last_seen: Instant,
}