This repository implements WebSocket functionality based on RFC6455, providing both C and C++ APIs for seamless integration into diverse projects. The library is designed to facilitate secure and unsecured WebSocket connections, utilizing mbedTLS for secure communication.
- C and C++ APIs: Offers both C and C++ interfaces for flexibility and ease of integration.
- Secure and Unsecured WebSocket Connections: Supports secure WebSocket (WSS) using mbedTLS, as well as standard unsecured WebSocket (WS) connections.
- CMake Build System: Simplifies building and integrating the library with CMake.
- permessage-deflate: Supports the permessage-deflate extension for message compression over WebSocket connections, enhancing efficiency and performance.
- Sec-WebSocket-Protocol: Not handled.
- C++11 or later
- CMake 3.0 or later
- [optional] Doxygen
git clone https://github.com/Mylifeismyhome/Websocket.git
cd ./Websocket
mkdir ./build
cd ./build
cmake -DCMAKE_CXX_FLAGS="-m64" -DENABLE_C_API=ON -DENABLE_CPP_API=ON -DBUILD_SHARED=ON -DBUILD_STATIC=ON -DEXAMPLE_C_API=ON ./../CMakeLists.txt
make
doxygen ./DoxyFile