https://github.com/tsoding/cws
Custom WebSocket implementation in C for educational and recreational purposes.
https://github.com/tsoding/cws
Last synced: 8 months ago
JSON representation
Custom WebSocket implementation in C for educational and recreational purposes.
- Host: GitHub
- URL: https://github.com/tsoding/cws
- Owner: tsoding
- License: mit
- Created: 2021-03-14T15:14:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-31T05:55:24.000Z (9 months ago)
- Last Synced: 2025-04-29T12:15:13.823Z (8 months ago)
- Language: C
- Size: 83 KB
- Stars: 78
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C WebSockets
> [!WARNING]
> The library is not in production ready state yet
Custom WebSocket implementation in C for educational and recreational purposes.
## Quick Start
```console
$ cc -o nob nob.c
$ ./nob
$ ./build/02_plain_async_echo_server
$ firefox ./tools/send_client.html
```
The Echo Servers in the examples are also testable with [Autobahn Test Suite](https://github.com/crossbario/autobahn-testsuite).
```
$ ./build/02_plain_async_echo_server
$ wstest --mode fuzzingclient
```
## References
- https://tools.ietf.org/html/rfc6455
- https://www.websocket.org/echo.html