loro-websocket-client (Rust)
Async WebSocket client for the Loro protocol. Exposes:
- Low-level
Clientto send/receive rawloro_protocol::ProtocolMessage. - High-level
LoroWebsocketClientthat joins rooms and mirrors updates into aloro::LoroDoc, matching the TypeScript client behavior.
%ELO support is WIP: the Rust adaptor currently ships snapshot-only packaging for encrypted docs and APIs may change.
Quick start
use Arc;
use ;
use LoroWebsocketClient;
#
# async
Features
- Handles protocol keepalive (
"ping"/"pong") and filters control frames. - Automatic fragmentation/reassembly thresholds aligned with the server.
- %ELO adaptor helpers to encrypt/decrypt containers alongside Loro (experimental snapshot-only flow).
Tests