An open API service indexing awesome lists of open source software.

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.

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