SaaSHub helps you find the best software and product alternatives Learn more →
Top 18 C WebSocket Projects
-
libcurl
A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. libcurl offers a myriad of powerful features
-
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.
-
ejdb
:snowboarder: EJDB2 — Embeddable JSON Database engine C library. Simple XPath like query language (JQL).
-
Melon
A generic cross-platform C library that includes many commonly used components and frameworks, and a new scripting language interpreter. It currently supports C99 and Aspect-Oriented Programming (AOP).
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
TDAmeritradeAPI
Front-end library - with C, C++, Python, and Java interfaces - for the recently expanded TDAmeritrade API
-
Websocket
WSServer is a fast, configurable, and extendable WebSocket Server for UNIX systems written in C (C11). (by mortzdk)
-
lua-eco
🐛Lua-eco is a Lua interpreter with a built-in event loop for scheduling lightweight coroutines automatically, enabling efficient concurrency in Lua. Build high-performance, scalable applications.
-
paho.mqtt.embedded-c
Eclipse Paho MQTT C client library - enhanced and less brittle fork with SSL and WebSocket support, a modernized build system, CI and bug fixes
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Then, in another terminal window, we use curl to hit the endpoint:
I've found myself at this webpage multiple times while trying to minimize the complexity of APIs in my C projects.
My conclusion for now is that C coroutines are something to be left to the implementer. For example: Mongoose (https://github.com/cesanta/mongoose) uses event callbacks to deal with asynchronousness. It is much more pleasant to wrap a library like this in whatever thread/task primitives your system has rather than try to integrate the mythical cross-platform c couroutine.
Project mention: Any fun/interesting custom scripts or services being ran on your setup? | /r/homelab | 2023-05-16I do everything through a web browser -- I run an Arch VM with a modified version of ttyd running as a systemd service.
Use webdis,it might help you
This article introduces the JSON parser of the open source C library Melon.
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.
[1]: https://github.com/Theldus/wsServer
Project mention: I want an easy serial monitor without having to connect a laptop | /r/esp32 | 2023-05-25There are a whole pile of projects which use a spare ESP32 or ESP8266 as a remote UART terminal. This sort of thing.
C WebSocket related posts
-
Coroutines in C
-
BCHS stack: BSD, C, httpd, SQLite
-
Eu não tinha nada melhor pra fazer, aí comecei a escrever um servidor HTTP em C do zero usando winsock.
-
Redis w external API
-
libonion or libhttpserver for embedding a webserver in a small application?
-
Selling proprietary library
-
ttyd - Share your terminal over the web
-
A note from our sponsor - SaaSHub
www.saashub.com | 4 May 2024
Index
What are some of the best open-source WebSocket projects in C? This list will help you:
Project | Stars | |
---|---|---|
1 | libcurl | 34,221 |
2 | Mongoose | 10,602 |
3 | ttyd | 7,333 |
4 | webdis | 2,782 |
5 | ejdb | 1,428 |
6 | Melon | 1,252 |
7 | wslay | 598 |
8 | wsServer | 400 |
9 | TDAmeritradeAPI | 238 |
10 | Websocket | 195 |
11 | iwnet | 172 |
12 | esp-protocols | 157 |
13 | wic | 66 |
14 | lua-eco | 58 |
15 | BAS | 55 |
16 | wi-se-sw | 23 |
17 | nmc2 | 9 |
18 | paho.mqtt.embedded-c | 1 |
Sponsored