Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 27 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 (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-05-26T19:27:03.000Z (6 months ago)
- Last Synced: 2024-09-29T23:41:41.942Z (about 1 month ago)
- Topics: c-plus-plus, cpp14, websocket-server, websockets
- Language: C++
- Size: 1.41 MB
- Stars: 734
- Watchers: 39
- Forks: 120
- 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
====================================================================[![CI](https://github.com/mattgodbolt/seasocks/workflows/ci/badge.svg)](https://github.com/mattgodbolt/seasocks/actions)
[![codecov](https://codecov.io/gh/mattgodbolt/seasocks/branch/master/graph/badge.svg)](https://codecov.io/gh/mattgodbolt/seasocks)
[![GitHub release](https://img.shields.io/github/release/mattgodbolt/seasocks.svg)](https://github.com/mattgodbolt/seasocks/releases)
[![License](https://img.shields.io/badge/license-BSD-yellow.svg)](LICENSE)
[![ConanCenter package](https://repology.org/badge/version-for-repo/conancenter/seasocks.svg)](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.