An extension of the GNU Libmicrohttpd library for Websocket support
Table of Contents
This is a modified version of libmicrohttpd (0.9.26) to support the websocket protocol natively. It partially implements the websocket protocol as specified in the technical document rfc6455 to deploy a simple server that supports Synchronous and asynchronous text requests.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Let's install the dependencies, tested on Ubuntu 18.04:
- Ubuntu 18.04
sudo apt-get install cmake autoconf automake libtool libgcrypt11-dev libcurl4-gnutls-dev
- Create the build directory and move in
mkdir build cd build
- Initialize the project
cmake ..
- Compile the libmicrohttpd library
make microhttpd_install
Important: Tested with Opera, Chrome, and Brave. Currently, it does not work with Firefox.
- Initialize and compile the library as indicated in the Installation section. Then, in the build directory, run
make run_main
Then go to localhost:9090
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the LGPLv2.1. See LICENSE
for more information.
Giovanni Liboni - [email protected]
Project Link: https://github.com/giovanni-liboni/libmicrohttpd-ws