salvo-realtime
Salvo Real-time Communication
Overview / decision guide for Salvo's real-time transports. For full APIs see salvo-websocket and salvo-sse.
Pick a transport
| WebSocket | SSE | |
|---|---|---|
| Direction | Full-duplex | Server → client only |
| Transport | Custom over TCP | Plain HTTP (text/event-stream) |
| Reconnection | Manual (heartbeat) | Automatic (browser) |
| Binary payloads | Yes | No (text only) |
| Proxies / firewalls | Occasionally blocked | Same as any HTTP request |
| Salvo feature | websocket |
sse |
Use WebSocket for chat, multiplayer games, collaborative editing, any bidirectional stream. Use SSE for notifications, tickers, progress bars, dashboards — anything that only pushes from server.
WebSocket quick start
More from salvo-rs/salvo-skills
salvo-csrf
Implement CSRF (Cross-Site Request Forgery) protection using cookie or session storage. Use for protecting forms and state-changing endpoints.
17salvo-auth
Implement authentication and authorization using JWT, Basic Auth, or custom schemes. Use for securing API endpoints and user management.
16salvo-websocket
Implement WebSocket connections for real-time bidirectional communication. Use for chat, live updates, gaming, and collaborative features.
16salvo-proxy
Implement reverse proxy to forward requests to backend services. Use for load balancing, API gateways, and microservices routing.
16salvo-cors
Configure Cross-Origin Resource Sharing (CORS) and security headers. Use for APIs accessed from browsers on different domains.
16salvo-database
Integrate databases with Salvo using SQLx, Diesel, SeaORM, or other ORMs. Use for persistent data storage and database operations.
16