| Crates.io | loro-websocket-server |
| lib.rs | loro-websocket-server |
| version | 0.1.0 |
| created_at | 2025-11-30 15:27:15.689007+00 |
| updated_at | 2025-11-30 15:27:15.689007+00 |
| description | Simple async WebSocket server skeleton for the Loro protocol |
| homepage | |
| repository | https://github.com/loro-dev/protocol |
| max_upload_size | |
| id | 1958368 |
| size | 164,154 |
Minimal async WebSocket server for the Loro protocol. Broadcasts DocUpdates between clients and provides hooks for auth and persistence. It mirrors the TypeScript server in packages/loro-websocket.
%LOR, %EPH, %ELO (experimental/WIP) and related CRDT types with fragment reassembly (≤256 KiB per message)."ping"/"pong" text frames)./{workspace}) and optional handshake auth.%ELO is treated as an opaque encrypted payload on the server; the Rust client adaptor is snapshot-only today and considered WIP.
Run the bundled SQLite-backed example:
cargo run -p loro-websocket-server --example simple-server -- --addr 127.0.0.1:9000 --db loro.db
Then connect clients to ws://127.0.0.1:9000/ws1.
Integrate your own storage by wiring ServerConfig.on_load_document and on_save_document.
cargo test -p loro-websocket-server