Rust WebSocket

Open-source Rust projects categorized as WebSocket

Top 21 Rust WebSocket Projects

  • tungstenite-rs

    Lightweight stream-based WebSocket implementation for Rust.

    Project mention: Help with Minimal Websocket Connection | | 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:

  • ws-rs

    Lightweight, event-driven WebSockets for Rust.

    Project mention: Hey Rustaceans! Got a question? Ask here! (40/2022)! | | 2022-10-03

    I wanted to try rust and developed a game websocket backend using ws-rs. Of course I didn't realize it was hardly maintained when I made my choice. The paradigm was very nice and simple, and it seemed really harder for a beginner to use (tokio-)tungstenite for example...


    ONLYOFFICE Docs — document collaboration in your environment. Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises

  • Rust-Full-Stack

    Rust projects here are easy to use. There are blog posts for them also.

    Project mention: Rust project websites? | | 2022-12-24
  • tokio-tungstenite

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

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

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

  • message-io

    Fast and easy-to-use event-driven network library.

  • async-tungstenite

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

  • mine.js

    :earth_asia: A voxel engine built with JS/TS/RS. (formerly mc.js) (maybe mine.ts? or even

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • kaminari

    Blazing-fast websocket tunnel built on top of lightws. (by zephyrchien)

  • man-in-the-middle-proxy

    A MITM Proxy 🧑‍💻! Toolkit for HTTP/1, HTTP/2, and WebSockets with SSL/TLS Capabilities. Learning Project.

    Project mention: MITM Proxy: v0.1.3 Released | | 2023-02-22

    We are looking for more contributors so if you want to collaborate you are of course welcome, if you can't, please consider leaving a star ⭐️, that would help!

  • graphql-rust-demo

    GraphQL Rust Demo

    Project mention: How to pass header (i.e. authentication) information to Juniper GraphQL Query or Mutation | | 2022-07-12

    I found an example with async-graphql but I can't find an equivalent example for Juniper. I am using actix_web, but an example with any server would probably work just fine.

  • ezsockets

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

    Project mention: Considering moving from Rocket to Actix Web | | 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.

  • hudsucker

    Intercepting HTTP/S proxy

  • stateroom

    A lightweight framework for building WebSocket-based application backends.

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

    A fast, low-overhead WebSocket client

  • lsp-ws-proxy

    WebSocketify any Language Server

  • rust-websocket

    A WebSocket (RFC6455) library written in Rust

  • bitque

    A simplified Jira clone built with and actix

  • speculare-pgcdc

    Postgresql capture data change software in Rust to allow realtime websockets

  • cmdpiped

    A command-line tool for exposing a wrapped program's standard IO using WebSockets/SSE

    Project mention: Show r/rust: cmdpiped - A command-line tool for exposing a wrapped program's standard IO using WebSockets/SSE | | 2022-07-24
  • hydrogen

    A websocket API gateway. (by voidpointergroup)

    Project mention: hydrogen - Websocket API Gateway in first Alpha release | | 2022-07-11

    More details @

  • yummy

    Yummy Game Server

    Project mention: Multiplayer in Rust | | 2023-04-08

    Hi. I am developing multiplayer server for games. It is still under development. Maybe it can worth to take a look at it. Note: you can use python for scripting and control the communication.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

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-04-08.

Rust WebSocket related posts


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

Project Stars
1 tungstenite-rs 1,429
2 ws-rs 1,383
3 Rust-Full-Stack 1,372
4 tokio-tungstenite 1,218
5 message-io 901
6 async-tungstenite 349
7 mine.js 291
8 kaminari 265
9 man-in-the-middle-proxy 255
10 graphql-rust-demo 166
11 ezsockets 133
12 hudsucker 120
13 stateroom 117
14 rust-websocket-lite 104
15 lsp-ws-proxy 30
16 rust-websocket 20
17 bitque 17
18 speculare-pgcdc 10
19 cmdpiped 10
20 hydrogen 4
21 yummy 0
TestGPT | Generating meaningful tests for busy devs
Get non-trivial tests (and trivial, too!) suggested right inside your IDE, so you can code smart, create more value, and stay confident when you push.