µWebSockets is a standards-focused HTTP and WebSocket stack for demanding real-time applications, with TLS, routing, and pub/sub features.
Overview
µWebSockets provides a web server and WebSocket stack aimed at high-throughput, low-overhead applications. It emphasizes TLS performance, standards compliance, and integration patterns for real-time HTTP and WebSocket projects.
The library is implemented in C and C++ and exposes Node.js integration for scripting backends. It includes a URL router with wildcards and parameters plus efficient WebSocket pub/sub primitives suited to interactive web services.
Security work includes participation in OSS-Fuzz, CodeQL cleanliness, and pedantic compiler warnings. The project reports a long-standing perfect Autobahn WebSocket test suite score and production use in large-scale trading platforms.
Architecture builds on µSockets with swappable event loops such as libuv, ASIO, GCD, epoll, and kqueue, and selectable TLS backends including WolfSSL and OpenSSL via compile flags.
Key features
- HTTP and WebSocket server
- TLS 1.3 messaging focus
- URL router with parameters
- WebSocket pub and sub
- Node.js backend integration
- Multiple event-loop backends
- Configurable TLS via µSockets
Use cases
- Real-time web and trading feeds
- High-connection WebSocket services
- Node.js scripted network apps
- Crypto exchange style workloads