salvo-websocket

Implement WebSocket endpoints for real-time bidirectional communication in Salvo applications.

20|5|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-websocket
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: salvo-websocket
Source: https://github.com/salvo-rs/salvo-skills/tree/main/skills/salvo-websocket
Command: npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-websocket

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Web applications often require real-time, low-latency communication between clients and servers. This skill provides a ready-to-use WebSocket implementation for Salvo, enabling bidirectional messaging and live updates.

Core Features & Use Cases

  • WebSocket upgrade with WebSocketUpgrade and handler integration for clean wiring of routes
  • Chat, live updates, and collaborative features with room and broadcast patterns
  • Support for text, binary, ping/pong, and JSON message handling with flexible payloads

Quick Start

Start a Salvo WebSocket server by defining a route that upgrades to WebSocket and echoes received messages.

Frequently Asked Questions about salvo-websocket

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

FAQPage Schema
How do I add WebSocket support to a Salvo Rust server?▼

To add WebSocket support in a Salvo Rust server, enable the websocket feature and use WebSocketUpgrade in your route handler to establish bidirectional real-time messaging connections.

Can I handle binary and ping/pong messages with Salvo WebSocket endpoints?▼

Yes, Salvo WebSocket endpoints support handling text, binary, and ping/pong messages, allowing flexible real-time payload processing for chat and live update applications.

Does Salvo support room broadcasting patterns for real-time chat applications?▼

Salvo supports room broadcasting patterns for real-time chat, enabling message distribution across multiple connected clients for collaborative experiences and live updates.

How do I authenticate WebSocket connections in Salvo using JWT?▼

You can authenticate WebSocket connections in Salvo using JWT by implementing optional JWT-auth scenarios during the WebSocket upgrade process to secure your real-time channels.

What is the best way to implement live updates in a Rust web application?▼

The best way to implement live updates in a Rust web application is using WebSockets for low-latency bidirectional communication, enabling real-time data push to connected clients.

Do I need the websocket feature enabled to use WebSocketUpgrade in Salvo?▼

Yes, you need the websocket feature enabled to use WebSocketUpgrade and related types in Salvo, as it provides the necessary traits and handlers for real-time communication setup.