diff --git a/CMakeLists.txt b/CMakeLists.txt index ce18230..9bf82c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,6 +61,7 @@ set(LIBDATACHANNEL_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/reliability.hpp ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/rtc.h ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/rtc.hpp + ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/websocket.hpp ) set(TESTS_SOURCES diff --git a/include/rtc/rtc.h b/include/rtc/rtc.h index 0e10371..833ee08 100644 --- a/include/rtc/rtc.h +++ b/include/rtc/rtc.h @@ -27,6 +27,10 @@ extern "C" { // libdatachannel C API +#ifndef RTC_ENABLE_WEBSOCKET +#define RTC_ENABLE_WEBSOCKET 1 +#endif + typedef enum { RTC_NEW = 0, RTC_CONNECTING = 1, diff --git a/include/rtc/rtc.hpp b/include/rtc/rtc.hpp index 9a72714..b78502d 100644 --- a/include/rtc/rtc.hpp +++ b/include/rtc/rtc.hpp @@ -23,6 +23,7 @@ // #include "datachannel.hpp" #include "peerconnection.hpp" +#include "websocket.hpp" // C API #include "rtc.h"