Top 3 websocket-library Open-Source Projects
-
-
Restbed
Corvusoft's Restbed framework brings asynchronous RESTful functionality to C++14 applications.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
One great feature for me was being able to accept both WebSocket as well as raw TCP connections on the same port using libwebsockets, this is extremely easy and just required settings the flag LWS_SERVER_OPTION_FALLBACK_TO_RAW.
I encountered other hiccups. They are fully documented and completely valid, but were really confusing to me as a first-time user:
* Sending data requires a specific memory layout[2] – namely having to allocate memory for the websocket header youself before the actual message you want to send. This gave me confusing segfaults in the beginning.
* Sending data / responding to a client message will probably (but not always) fail when just naively using "lws_write()". To correctly send data you need to manually queue your message data, request the "ON_WRITABLE" callback[3] and only then actually send.
Index
What are some of the best open-source websocket-library projects? This list will help you:
Project | Stars | |
---|---|---|
1 | websockets | 4,968 |
2 | Restbed | 1,885 |
3 | wsServer | 399 |