| Crates.io | clasp-transport |
| lib.rs | clasp-transport |
| version | 3.1.0 |
| created_at | 2026-01-16 04:32:58.813578+00 |
| updated_at | 2026-01-25 07:22:49.661935+00 |
| description | Transport layer implementations for CLASP |
| homepage | https://clasp.to |
| repository | https://github.com/lumencanvas/clasp |
| max_upload_size | |
| id | 2047899 |
| size | 253,150 |
Transport layer implementations for CLASP (Creative Low-Latency Application Streaming Protocol).
| Transport | Feature Flag | Description |
|---|---|---|
| WebSocket | websocket (default) |
Primary transport for browser and server communication |
| QUIC | quic |
Low-latency UDP-based transport with TLS 1.3 |
| TCP | tcp |
Reliable streaming transport |
| UDP | udp |
Lightweight datagram transport for LAN |
| WebRTC | webrtc |
P2P data channels with NAT traversal |
| BLE | ble |
Bluetooth Low Energy GATT service |
| Serial | serial |
Hardware serial port communication |
use clasp_transport::WebSocketTransport;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let transport = WebSocketTransport::connect("ws://localhost:7330").await?;
// Send messages
transport.send(message).await?;
// Receive messages
while let Some(msg) = transport.recv().await {
println!("Received: {:?}", msg);
}
Ok(())
}
Visit clasp.to for full documentation.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Maintained by LumenCanvas | 2026