https://github.com/mattgodbolt/seasocks
Simple, small, C++ embeddable webserver with WebSockets support
https://github.com/mattgodbolt/seasocks
c-plus-plus cpp14 websocket-server websockets
Last synced: 10 days ago
JSON representation
Simple, small, C++ embeddable webserver with WebSockets support
- Host: GitHub
- URL: https://github.com/mattgodbolt/seasocks
- Owner: mattgodbolt
- License: bsd-2-clause
- Created: 2013-10-12T15:14:37.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-05-05T13:44:18.000Z (19 days ago)
- Last Synced: 2025-05-05T14:50:11.758Z (19 days ago)
- Topics: c-plus-plus, cpp14, websocket-server, websockets
- Language: C++
- Size: 1.41 MB
- Stars: 752
- Watchers: 38
- Forks: 121
- Open Issues: 41
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - seasocks
README
Seasocks - A tiny embeddable C++ HTTP and WebSocket server
====================================================================[](https://github.com/mattgodbolt/seasocks/actions)
[](https://codecov.io/gh/mattgodbolt/seasocks)
[](https://github.com/mattgodbolt/seasocks/releases)
[](LICENSE)
[](https://conan.io/center/seasocks)Features
--------
* Simple C++ API
* Serves static content from disk
* API for building WebSocket servers
* Simple command line binary for quick serving of static files only
* Supports newer Hybi-10 and Hybi-16 WebSockets as well as the older Hixie style.
* Supports Linux and WindowsStuff it doesn't do
-------------------
* It's not nearly as configurable as Apache, Lighttpd, Nginx, Jetty, etc.
* It provides only limited support for custom content generation (e.g. Servlets).
* It has been designed for WebSocket based control.
* It probably won't work on other systems (patches to support other systems would be welcome, but not a priority for us)Getting started
---------------
Check out the [tutorial](https://github.com/mattgodbolt/seasocks/wiki/Seasocks-quick-tutorial) on the wiki.See [src/app/c/ws_test.cpp](https://github.com/mattgodbolt/seasocks/blob/master/src/app/c/ws_test.cpp) for an example.