An open API service indexing awesome lists of open source software.

awesome-websockets

A curated list of Websocket libraries and resources.
https://github.com/facundofarias/awesome-websockets

Last synced: 9 days ago
JSON representation

Browser libraries

  • WSGO - like Axios.js, only for WebSocket, adds handy debugging tools
  • react-use-websocket - React hook for WebSocket connections with reconnection, message queueing, and shared connections.

Command-Line Interface (CLI) Tools

  • claws - Awesome WebSocket Client - an interactive command line client for testing websocket servers.
  • wscat - WebSocket cat.
  • wsta - A CLI development tool for WebSocket APIs.
  • ws - websocket command line tool.
  • wssh - wssh ("wish") is a command-line utility/shell for WebSocket inspired by netcat.
  • wsc - A tiny command line websocket client written in Go.
  • ws-cli - WebSocket Command Line Client written in Go.
  • ws-tool - A Develop Tool to Test WebSocket, Socket.IO, Stomp, Bayeux, HTTP, TCP, UDP, WebRTC, DNS API.
  • websocketd - Turn any program that uses STDIN/STDOUT into a WebSocket server. Like inetd, but for WebSockets.
  • websocat - Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions.
  • iola - Socket client with Rest API (WebSocket, Socket.IO, TCP, Unix socket).

GUI Testing Tools

  • Firecamp - Full-featured GUI WebSocket testing client which helps Dev team to test WebSocket events visually. Test APIs, save them in the project and share it with your team.
  • Bruno - Open-source, offline-first API client with WebSocket support and git-friendly plain-text collections.
  • Hoppscotch Realtime - Free, open-source browser client for testing WebSocket, SSE, Socket.IO and MQTT connections.
  • Simple WebSocket Client - Simple WebSocket Client (Chrome Extension).
  • Gostman - Free, open-source desktop, web and CLI API client with WebSocket, Socket.IO and MQTT requests, saved messages, and variables in every message.
  • Insomnia - Open-source API client with native WebSocket request support alongside REST, GraphQL and gRPC.
  • Thunder Client - Lightweight VS Code REST and WebSocket client for testing connections without leaving the editor.
  • WebSocket King - A browser based WebSocket testing client that supports multiple simultanious connections, logs of incoming and outgoing messages, custom protocols and multiple projects.

Managed / Hosted Services

  • AWS API Gateway WebSocket APIs - Managed WebSocket APIs that route messages to Lambda and other AWS backends.
  • Cloudflare Durable Objects - Stateful serverless coordination primitive commonly used to build WebSocket rooms and realtime backends at the edge.
  • Cloudflare Workers WebSockets - Native WebSocket support in Cloudflare Workers, including hibernatable connections.
  • PartyKit - Open-source platform for building realtime multiplayer apps on Cloudflare with a batteries-included WebSocket server abstraction.
  • Supabase Realtime - Realtime engine broadcasting Postgres changes, presence, and messages to clients over WebSockets.
  • Ably - Managed pub/sub realtime platform with WebSocket-based messaging, presence, and guaranteed delivery.
  • Momento Topics - Serverless pub/sub and caching service with realtime topics accessible over WebSockets.
  • PubNub - Realtime edge messaging platform delivering pub/sub over WebSockets at global scale.
  • Pusher Channels - Hosted WebSocket API for pub/sub realtime features with client SDKs across platforms.

Real Life Stories

Security

  • WebSockets - An Introduction - The problems and some security implications of websockets - Cross-site WebSockets Scripting (XSWS).
  • Hacking with WebSockets - Talk on Blackhat USA 2012 Conference.
  • Testing for WebSockets Security Vulnerabilities - Interactive vulnerable WebSocket demos that provide hands-on learning of WebSocket security risks
  • WebSocket Security - The WebSocket protocol is a young technology, and brings with it some risks. Decades of experience have taught the web community some best practices around HTTP security, but the security best practices in the WebSocket world aren’t firmly established, and continue to evolve. Nevertheless, some themes have emerged and they are described in this article.
  • Websockets Auth - Journey into WebSockets Authentication/Authorization.
  • Testing WebSockets - OWASP Web Security Testing Guide (WSTG), client-side WebSocket testing chapter.
  • Cross-site WebSocket hijacking labs - PortSwigger deep-dive on CSWSH with interactive labs.

Theory

Articles & Papers

Books

Sites

Tutorials

Tools per Language

Agnostic

  • Centrifugo - Scalable real-time messaging in language-agnostic way.
  • Websocketd - WebSockets the UNIX way - Full duplex messaging between web browsers and servers.
  • Apache-websocket - Apache WebSocket module.
  • MinnowServer - A super small and fast embedded HTTP(S) WebSocket server.
  • gwsocket - Fast, standalone, language-agnostic WebSocket server RFC6455 compliant.
  • SocketCluster - Scalable pub/sub WebSocket framework with support for horizontal scaling across multiple hosts and processes.

Ballerina

  • Ballerina WebSocket Module - Tailored WebSocket client and server implementations in Ballerina, designed and optimized for seamless integration.

C

  • Websocket - Websocket server written in C.
  • libuwsc - A Lightweight and fully asynchronous WebSocket client C library based on libubox for Embedded Linux.
  • mongoose - Mongoose Embedded Web Server Library - Mongoose is more than an embedded webserver. It is a multi-protocol embedded networking library with functions including TCP, HTTP client and server, WebSocket client and server, MQTT client and broker and much more.
  • WebSockets in C - A minimal implementation for embedded applications.
  • Wslay - Designed to be embedded in other programs; freedom to choose your own network I/O. Event-based API, as well as synchronous frame-based.
  • civetweb - Embedded C/C++ web server with WebSocket client and server support, easy to integrate.
  • Libwebsockets - It's a lightweight pure C library built to use minimal CPU and memory resources, and provide fast throughput in both directions as client or server.

C#

  • websocket-rpc - WebSocket RPC library for .NET with auto JavaScript client code generation, supporting ASP.NET Core.
  • NetGain - A high performance websocket server library powering Stack Overflow.
  • websocket-manager - Real-Time library for ASP .NET Core.
  • WebSockets - Implementation of the WebSocket protocol, along with client and server integration components.
  • unity-websocket-server - A simple, zero-dependency WebSocket server for Unity.
  • websocket-sharp - A C# implementation of the WebSocket protocol client and server.
  • WebSocketListener - Lightweight and highly scalable asynchronous WebSocket server for .NET/Mono.
  • WebSockets support in ASP.NET Core - This article explains how to get started with WebSockets in ASP.NET Core.
  • Fleck - Simple C# WebSocket server implementation with no dependencies.
  • Ninja.WebSockets - Standalone, high-performance C# WebSocket client and server implementation.
  • websocket-client - Reactive, reconnecting WebSocket client for .NET based on System.Net.WebSockets.

C++

  • Websocketpp - C++ Websocket client/server library.
  • Beast - HTTP and WebSocket built on Boost.Asio in C++11.
  • µWebSockets - Highly scalable WebSocket server library.
  • Simple-WebSocket-Server - A very simple, fast, multithreaded, platform independent WebSocket (WS) and WebSocket Secure (WSS) server and client library implemented using C++11, Boost.Asio and OpenSSL.
  • IXWebSocket - Lightweight C++11 multi-threaded client library with TLS support.
  • LAppS - LAppS - Lua Application Server for micro-services with default communication over WebSockets.
  • libhv - A network library for developing TCP/UDP/SSL/HTTP/WebSocket client/server.
  • Crow - Fast and easy-to-use C++ microframework for the web, with WebSocket support.
  • Drogon - Fast C++14/17/20 HTTP application framework with built-in WebSocket controllers.
  • Oat++ - Light and powerful C++ web framework with async WebSocket support and zero dependencies.
  • POCO - C++ libraries for network-centric applications, including HTTP and WebSocket classes.

D

  • Arsd:CGI - Uniform server-side API for CGI, FastCGI, SCGI, and HTTP web applications. Offers both lower- and higher- level api options among other common (optional) things like websocket and event source serving support.
  • Handy - The simplest HTTP server for your D project.
  • Lighttp - Lightweight asynchronous HTTP and WebSocket server library for the D.
  • Serverino - Small and ready-to-go http server. Support for websockets included.
  • Vibe.d - High-performance asynchronous I/O, concurrency and web application toolkit written in D.
  • Websocketd - A websocket server in D.

Elixir

  • Bandit - Pure-Elixir HTTP and WebSocket server built for Plug and WebSock.
  • Phoenix - Productive Elixir web framework with Channels for realtime, scalable WebSocket communication.
  • Phoenix LiveView - Rich, realtime server-rendered UIs over WebSockets without writing JavaScript.
  • WebSockex - Elixir WebSocket client library built on top of GenServer.

Erlang

  • Sockjs-erlang - WebSocket emulation - Erlang server.
  • Cowboy - Small, fast, modular HTTP server written in Erlang.
  • n2o - Erlang web server on websockets.
  • Kraken - Distributed Pubsub Server for Realtime Apps.
  • Gun - Erlang HTTP/1.1, HTTP/2 and WebSocket client library.

Go

  • gotify/server - A simple server for sending and receiving messages in real-time per web socket.
  • Gorilla Websocket - WebSocket implementation for Go.
  • Ws - Tiny WebSocket library for Go.
  • 1m-go-websockets - Handling 1M websockets connections in Go.
  • Centrifuge - Real-time messaging library for Go with scalability in mind.
  • GWS - Simple, fast, reliable websocket server & client, supports running over tcp/kcp/unix domain socket.
  • Velaros - A lightweight framework with HTTP-style routing, bidirectional messaging, and middleware.
  • KubeStellar Console - AI-powered multi-cluster Kubernetes dashboard using WebSockets for real-time cluster communication and live observability streams.
  • coder/websocket - A minimal and idiomatic WebSocket library for Go (formerly nhooyr/websocket).
  • Fiber WebSocket - WebSocket middleware for the Fiber web framework, built on Fasthttp.
  • go-socket.io - Socket.IO library for Go, a realtime application framework.
  • greatws - Event-driven WebSocket server able to handle millions of connections with low memory.
  • Melody - Minimalist framework for dealing with WebSocket sessions, including broadcasting and message buffering.
  • nbio - Non-blocking, event-driven networking framework with high-performance WebSocket support and low memory usage.

Haskell

  • Websockets - A Haskell library for creating WebSocket-capable servers.
  • n2o - Haskell implementation of Erlang's n2o - web server on websockets.

Java VM

  • Play - The high velocity web framework for Java and Scala.
  • Chord - Library designed to bridge the gap between the triad of CLJ/CLJS, web-sockets and core.async.
  • Java-WebSocket - Barebones WebSocket client and server implementation written in 100% Java.
  • Atmosphere - Realtime Client Server Framework for the JVM, supporting WebSockets with Cross-Browser Fallbacks.
  • Webbit - Java event based WebSocket and HTTP server.
  • nv-websocket-client - High-quality WebSocket client implementation in Java which.
  • Scarlet - Tinder's Retrofit inspired WebSocket client for Kotlin, Java, and Android.
  • Finagle-websocket - Finagle Websocket clients and servers.
  • Sente - Realtime web comms for Clojure/Script.
  • http-kit - Minimalist, high-performance HTTP server and client with async WebSocket support.
  • Javalin - Lightweight web framework for Java and Kotlin with simple WebSocket handlers.
  • Jetty - Lightweight, embeddable Java web server and servlet container with Jakarta and native WebSocket support.
  • Netty - Asynchronous event-driven network framework with full WebSocket codec support.
  • Project Tyrus - JSR 356: Java API for WebSocket - Reference Implementation.
  • Spring WebSocket - WebSocket and STOMP messaging support built into the Spring Framework.
  • Undertow - High-performance web server (WildFly's core) with a dedicated WebSocket API.
  • Vert.x - Reactive, polyglot toolkit for the JVM with first-class WebSocket client and server APIs.
  • Ktor - JetBrains' Kotlin async framework with built-in WebSocket client and server support.
  • OkHttp - HTTP client for the JVM and Android with a robust WebSocket client.
  • Apache Pekko HTTP - Streaming WebSocket client and server directives; the Apache-licensed Akka HTTP fork.
  • http4s - Typeful, functional, streaming HTTP for Scala with WebSocket support.
  • ZIO HTTP - High-performance, functional Scala HTTP library with WebSocket support built on ZIO.

Julia

  • HTTP.jl - HTTP library for Julia with support on Websockets.
  • WebSockets.jl - A WebSockets library for Julia.

Node.js / JavaScript

  • deepstream.io - Open realtime server a fast, secure and scalable realtime server for mobile, web & iot.
  • wspromisify - Makes WebSockets async/await ready with a lot of yummies.
  • Nodejs-websocket - Node.js module for websocket server and client.
  • WebSocket-Node - WebSocket Implementation for Node.JS (Draft -08 through the final RFC 6455).
  • Sockjs-node - WebSocket emulation - Node.js server.
  • Ws - ws: The fastest cross platform RFC-6455 WebSocket implementation for Node.js.
  • websocket-as-promised - Promise-based W3C WebSocket wrapper: allows to use promises when connecting, disconnecting and messaging with WebSocket server.
  • faye-websocket-node - Standards-compliant WebSocket client and server.
  • ws-wrapper - Lightweight WebSocket wrapper that provides a socket.io-like event-handler API along with Promise-based requests.
  • ws-server-wrapper - Companion library for ws-wrapper for the server-side.
  • uws - Tiny WebSockets (access to the C++ library, µWebSockets, via Node.js)
  • netflux - JavaScript client and server side transport API based on WebRTC & WebSocket
  • Sockette - WebSocket client that will automatically reconnect if the connection is lost.
  • rpc-websockets - JSON-RPC 2.0 implementation over WebSockets for Node.js and JavaScript/TypeScript.
  • soketi - Just another simple, fast, and resilient open-source WebSockets server. Built on top of uWebSockets.js.
  • graphql-ws - Coherent, zero-dependency, spec-compliant GraphQL over WebSocket server and client.
  • Hono WebSocket Helper - Built-in WebSocket helper for the Hono framework across Cloudflare Workers, Bun, Deno, and Node.js.
  • PartySocket - Robust WebSocket client with automatic reconnection and buffering, usable against any WS server.
  • tRPC Subscriptions - End-to-end typesafe real-time subscriptions over WebSockets for TypeScript apps.
  • y-websocket - WebSocket connection provider for Yjs, enabling real-time collaborative editing and CRDT sync.
  • ZilaWS Server - A very easy-to-use and fast WS implementation with async/await eventhandlers and extendable classes.

Perl

PHP

  • Ratchet - Ratchet is a loosely coupled PHP library providing developers with tools to create real time, bi-directional applications between clients and servers over WebSockets.
  • Phpws - PHP Web Socket server.
  • Sandstone - Microframework to build a real time Rest API.
  • Laravel Websockets - A package for Laravel 5.7 and up that will get your application started with WebSockets in no-time!

Protocols and APIs

  • RFC6455 - The WebSocket Protocol.
  • TikTool Live - Real-time TikTok LIVE stream events (chat, gifts, viewers) via WebSocket. SDKs for Node.js and Python.
  • TikTokLiveJava - A TikTok LIVE API Client built in Java. Real-time TikTok LIVE stream events (gifts, chats, etc.) over WebSockets.
  • The WebSocket API - WebSockets - Living Standard.
  • Live Tennis API - Real-time tennis score events (point-by-point state, serving, break points) streamed over WebSocket on paid tiers, with a free REST tier. SDKs for Node.js and Python.
  • OCPP 1.6-J by Example - The EV charging protocol that runs as a WebSocket subprotocol, shown through the eight messages a charging backend handles, with real payloads.
  • WAMP - The Web Application Messaging Protocol: routed RPC and publish/subscribe over WebSocket.

Python

  • Starlette
  • Autobahn.ws - Open-source real-time framework for Web, Mobile & Internet of Things.
  • WebSocket Benchmarker - CLI tool for benchmarking WebSocket Servers.
  • Simple Http Server - A simple HTTP server, including support of numerous websocket events like on_text_message, on_binary_message etc. And even on_binary_frame.
  • Picows - Ultra-fast WebSocket client and server library for asyncio.
  • WebRockets - Rust-powered WebSocket server with Django integration, message pattern matching, Pydantic validation, and more.
  • aiohttp - Asynchronous HTTP client/server framework for asyncio, with built-in WebSocket client and server support.
  • FastAPI - Modern, high-performance web framework for building APIs, with first-class WebSocket support.
  • python-socketio - Python implementation of the Socket.IO realtime client and server.
  • python-websocket-server - Minimal, dependency-free WebSocket server written in pure Python.
  • simple-websocket - Simple WebSocket server and client for Python built on WSGI/ASGI.
  • Socketify.py - Fast WebSocket and HTTP server for Python built on uWebSockets, with ASGI/WSGI support.