Skip to content

Mylifeismyhome/Websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

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.

Features

  • 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.

Supported Extensions

  • permessage-deflate: Supports the permessage-deflate extension for message compression over WebSocket connections, enhancing efficiency and performance.

Limitations

  • Sec-WebSocket-Protocol: Not handled.

Requirements

  • C++11 or later
  • CMake 3.0 or later
  • [optional] Doxygen

Building from Source

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

Building documentation

doxygen ./DoxyFile