uNetworking/uWebSockets


Simple, secure & standards compliant web I/O for the most demanding of applications

License: Apache-2.0

Language: C++

Keywords: commercial, http, pubsub, router, websockets


µWS ("microWS") is a WebSocket and HTTP implementation for clients and servers. Simple, efficient and lightweight.

Wiki pages & user manual | Care for a sneak peek?

Build optimized WebSocket & HTTP servers & clients in no time.

#include <uWS/uWS.h>
using namespace uWS;

int main() {
    Hub h;
    std::string response = "Hello!";

    h.onMessage([](WebSocket<SERVER> *ws, char *message, size_t length, OpCode opCode) {
        ws->send(message, length, opCode);
    });

    h.onHttpRequest([&](HttpResponse *res, HttpRequest req, char *data, size_t length,
                        size_t remainingBytes) {
        res->end(response.data(), response.length());
    });

    if (h.listen(3000)) {
        h.run();
    }
}

Pay what you want.

A free & open source (Zlib) hobby project of mine since 2016. Kindly sponsored by BitMEX, Bitfinex & Coinbase in 2018.

Understand I don't take issue reports, suggestions or provide any support to free-riders. You want in? Become a sponsor.

Excel across the board.

Be fast, not broken.

Gracefully passes the entire Autobahn fuzzing test suite with no failures or Valgrind/ASAN errors. With or without SSL/permessage-deflate.

Project Statistics

Sourcerank 18
Repository Size 2.71 MB
Stars 10,405
Forks 960
Watchers 408
Open issues 14
Dependencies 0
Contributors 52
Tags 60
Created
Last updated
Last pushed

Top Contributors See all

Alex Hultman Abhinav Gauniyal Luigi Pinca Jérémy Lal silverwind Utensil Song jimmyt857 Sander Ploegsma Joakim L. Gilje Lian Duan Dali Zheng Yixin Zhang Operations Research Engineering Software+ Tamaki Nishino Mark Plomer Marcin Cieślak Vinnie Falco Ben Vinson Jan Chren Jiri Spac

Packages Referencing this Repo

uws-old
Highly efficient WebSocket & HTTP library
Latest release 0.13.0 - Updated - 10.4K stars
nxtws
Highly scalable WebSocket server & client library
Latest release 0.12.0 - Published - 10.4K stars
uws
Tiny WebSockets
Latest release 99.0.0 - Updated - 10.4K stars
uws-new-build
Highly scalable WebSocket server & client library
Latest release 0.10.11 - Published - 10.4K stars
uws-ee3
Tiny WebSockets
Latest release 9.15.0 - Published - 10.4K stars
uws-extraheaders
Tiny WebSockets
Latest release 9.14.5 - Updated - 10.4K stars
uws-light
Tiny WebSockets
Latest release 0.22.0 - Published - 10.4K stars
uws-broadcast
Tiny WebSockets with broadcast callback/promise
Latest release 9.14.5 - Updated - 10.4K stars
@kapouer/uws
Highly scalable WebSocket server & client library
Latest release 0.13.0-alpha.5.0 - Updated - 10.4K stars
uws-trashme-after-121-merge
This package name is not currently in use, but was formerly occupied by another package. To avoid...
Latest release 0.4.1 - Updated - 10.4K stars

Recent Tags See all

v0.14.8 April 22, 2018
v0.14.7 April 12, 2018
v0.14.6 March 09, 2018
v0.14.5 December 28, 2017
v0.14.4 August 10, 2017
v0.14.3 April 24, 2017
v0.14.2 April 02, 2017
v0.14.1 March 28, 2017
v0.14.0 March 28, 2017
v0.14.0nodejs March 23, 2017
v0.14.0alpha5 March 23, 2017
v0.14.0alpha4 March 22, 2017
v0.14.0alpha3 March 21, 2017
v0.14.0alpha2 March 20, 2017
v0.14.0alpha1 March 06, 2017

Interesting Forks See all

discordapp/uWebSockets
Highly scalable WebSocket server library
C++ - Last pushed - 10 stars - 4 forks
coin-au-carre/uWebSockets
Highly scalable cross-platform WebSocket & HTTP library for C++11 and Node.js
C++ - Last pushed - 4 stars
yytdfc/uWebSockets
Tiny WebSockets
C++ - Last pushed - 3 stars
jondubois/uWebSockets
Tiny WebSockets
C++ - Zlib - Updated - 2 stars
xiaoeyou/uWebSockets
Tiny WebSockets
C++ - Zlib - Updated - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2018-07-22 13:34:23 UTC

Login to resync this repository