Refactor WebSocket server to use nlohmann::json for active connections

- Update the return type of getActiveConnections() in both websocket_server.cpp and websocket_server.h to nlohmann::json for consistency and clarity.
- Ensure proper usage of the nlohmann::json library in the WebSocket server implementation.
This commit is contained in:
Torsten Schulz (local)
2025-11-20 16:19:45 +01:00
committed by Torsten (PC)
parent 5ac8e9b484
commit dafdbf0a84
2 changed files with 2 additions and 2 deletions

View File

@@ -549,7 +549,7 @@ bool WebSocketServer::isMainAdmin(const std::string &hashedUserId) {
return count > 0;
}
json WebSocketServer::getActiveConnections() {
nlohmann::json WebSocketServer::getActiveConnections() {
json result = json::array();
std::shared_lock<std::shared_mutex> lock(connectionsMutex);