salvo-sse

Stream real-time updates from server to clients in Salvo-based Rust apps.

1|Updated Mar 16, 2024
One-click install
npx skills add https://github.com/tdcare/genies --skill salvo-sse-tdcare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-sse
Source: https://github.com/tdcare/genies/tree/main/.qoder/skills/salvo-sse
Command: npx skills add https://github.com/tdcare/genies --skill salvo-sse-tdcare

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stream real-time updates from server to clients in Salvo-based Rust apps.

Core Features & Use Cases

  • Built-in SSE streaming via salvo::sse to push updates
  • Supports keep-alive, named events, and JSON payloads
  • Use for live dashboards, notifications, and streaming data across routes

Quick Start

Add salvo-sse to your dependencies and wire an SSE route using the sse utilities.

Frequently Asked Questions about salvo-sse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stream real-time notifications from a Salvo Rust server to clients?

You can stream real-time notifications by wiring a dedicated Salvo route to an SSE handler that pushes server-sent events to connected clients. This Skill provides the SSE streaming utilities needed for live updates in Salvo apps.

What is server-sent events streaming used for in Rust web applications?

Server-sent events streaming is used to push real-time data from server to clients without polling. It applies to live dashboards, notifications, and streaming data feeds across Rust web routes using the Salvo framework.

Does Salvo support SSE keep-alive and named events for live feeds?

Yes, Salvo supports SSE streaming with keep-alive signals, named events, and JSON payloads. These features allow structured real-time data delivery for live feeds and notifications in Rust applications.

How do I set up a dedicated SSE route in a Salvo app?

Add the SSE crate to your dependencies and wire a dedicated route using the provided SSE utilities. You then create a simple handler that delivers the server-sent events stream through that specific Salvo route.

Do I need Tokio to use server-sent events with the Salvo framework?

Yes, you need Tokio-compatible crates to run Salvo-based Rust apps that deliver SSE streams. The asynchronous runtime is required to maintain persistent connections for real-time server-sent event delivery.