Rust Websockets

Open-source Rust projects categorized as Websockets

Top 13 Rust Websocket Projects

  • actix-web

    Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

    Project mention: Actix-Web: v4.4.0 | | 2023-08-30
  • websocat

    Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions

    Project mention: Show HN: ScaleSocket – Turn any script into a multiplayer WebSocket server | | 2023-09-20

    It's similar to running netcat in server mode, wrapping a script. It's even closer to doing that using websocat [1], whereby one does not have to do the websocket header juggling.

    The main difference is that while netcat or websocat will spawn a new process for each connecting client, ScaleSocket has a concept of rooms (channels). For a room, a process is spawned once only. All clients connecting to the same room are routed to the same process. This is not straight forward to do using the forementioned tools.

    There's a small comparison page [2] where I have mentioned some alternative tools.


  • Revelo Payroll

    Free Global Payroll designed for tech teams. Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.

  • pushpin

    Proxy server for adding push to your API

    Project mention: Building a privacy-friendly, self-hosted application architecture with SvelteKit | | 2023-07-16

    For realtime, I used Pushpin with Server Sent Events. (It supports WebSocket as well).

  • tungstenite-rs

    Lightweight stream-based WebSocket implementation for Rust.

    Project mention: Help with Minimal Websocket Connection | /r/rust | 2023-03-10

    You can start by following tungstenite-rs client example. And since you are connecting to an tls enabled endpoint you should enable tls features. And according to your API's doc it requires you to send serialized json string for requesting message response and you can use serde ande serde_json for serialization. This is a complete example where a hardcode string request:

  • tokio-tungstenite

    Future-based Tungstenite for Tokio. Lightweight stream-based WebSocket implementation

    Project mention: Yet another Web-Socket implementation in rust. | /r/rust | 2023-03-27

    It passed all test of the autobahn testsuite And web-socket-benchmark show about 3x faster then tokio-tungstenite

  • ntex

    framework for composable networking services

  • async-tungstenite

    Async binding for Tungstenite, the Lightweight stream-based WebSocket implementation

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • ezsockets

    High-level declarative API for building WebSocket Clients and Servers in Rust 🦀

    Project mention: Considering moving from Rocket to Actix Web | /r/rust | 2023-03-25

    Check out ezsockets by /u/gbaranski. I also switched to Axum due to its WS support, in Actix it seems you need another crate and it's not really interoperable with the Tokio ecosystem generally, such as with tungstenite.

  • ws_stream_wasm

    Wasm convenience API for WebSockets

    Project mention: Hey Rustaceans! Got a question? Ask here (12/2023)! | /r/rust | 2023-03-20
  • mezzenger

    Message passing infrastructure for Rust.

    Project mention: mezzenger - message passing over the network (and network-like interfaces) made easy | /r/rust | 2022-12-09
  • rust_chat_server

    A very small, very dumb and very bad chat server to send messages in a common place for every participant.

  • fast_websocket_client

    A fast asynchronous websocket client built on top of fastwebsockets library

    Project mention: A rust newbie wrote a websocket client library based on Deno's fastwebsockets. | /r/rust | 2023-08-24
  • remotegamepad-server

    A Free and Open source application that turns your mobile device into a remote gamepad for your computer. This is the server.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-09-20.

Rust Websockets related posts


What are some of the best open-source Websocket projects in Rust? This list will help you:

Project Stars
1 actix-web 18,615
2 websocat 5,941
3 pushpin 3,320
4 tungstenite-rs 1,538
5 tokio-tungstenite 1,390
6 ntex 1,285
7 async-tungstenite 367
8 ezsockets 166
9 ws_stream_wasm 86
10 mezzenger 11
11 rust_chat_server 2
12 fast_websocket_client 2
13 remotegamepad-server 1
Learn any GitHub repo in 59 seconds
Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at