From 44c4ab342dc6651ab5453e4cf86e1377b91e8dd7 Mon Sep 17 00:00:00 2001 From: Gaspard Kirira Date: Mon, 2 Feb 2026 15:33:09 +0300 Subject: [PATCH] v1.27.0: OpenAPI docs for HTTP & WebSocket + improved WebSocket example --- examples/websocket/advanced/CMakeLists.txt | 18 +- .../websocket/advanced/advanced_chat.html | 31 +-- examples/websocket/advanced/src/client.cpp | 188 +++++++++--------- examples/websocket/advanced/src/server.cpp | 35 +--- modules/core | 2 +- modules/websocket | 2 +- 6 files changed, 118 insertions(+), 158 deletions(-) diff --git a/examples/websocket/advanced/CMakeLists.txt b/examples/websocket/advanced/CMakeLists.txt index 4f10754..3eb4ee7 100644 --- a/examples/websocket/advanced/CMakeLists.txt +++ b/examples/websocket/advanced/CMakeLists.txt @@ -1,5 +1,15 @@ # ------------------------------------------------------------------------------ -# CMakeLists.txt — Advanced WebSocket Examples for Vix.cpp +# @file CMakeLists.cpp +# @author Gaspard Kirira +# +# Copyright 2025, Gaspard Kirira. All rights reserved. +# https://github.com/vixcpp/vix +# Use of this source code is governed by a MIT license +# that can be found in the License file. +# +# Vix.cpp +# +# Advanced WebSocket Examples for Vix.cpp # # This CMake file builds two advanced demonstration executables showcasing # production-style usage of the Vix.cpp WebSocket module: @@ -30,10 +40,7 @@ project(vix_ws_advanced LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) -# ------------------------------------------------------------------------------ # Advanced WebSocket Server -# ------------------------------------------------------------------------------ - add_executable(vix-ws-advanced-server src/server.cpp ) @@ -43,10 +50,7 @@ target_link_libraries(vix-ws-advanced-server vix::websocket ) -# ------------------------------------------------------------------------------ # Advanced WebSocket Client -# ------------------------------------------------------------------------------ - add_executable(vix-ws-advanced-client src/client.cpp ) diff --git a/examples/websocket/advanced/advanced_chat.html b/examples/websocket/advanced/advanced_chat.html index 3003855..3e6cf4d 100644 --- a/examples/websocket/advanced/advanced_chat.html +++ b/examples/websocket/advanced/advanced_chat.html @@ -4,7 +4,6 @@ Vix WebSocket Rooms Chat -