diff --git a/src/websocket_server.cpp b/src/websocket_server.cpp index e276471..ff8aca7 100644 --- a/src/websocket_server.cpp +++ b/src/websocket_server.cpp @@ -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 lock(connectionsMutex); diff --git a/src/websocket_server.h b/src/websocket_server.h index 651754a..6e076bf 100644 --- a/src/websocket_server.h +++ b/src/websocket_server.h @@ -50,7 +50,7 @@ private: void handleBrokerMessage(const std::string &message); std::string getUserIdFromFalukantUserId(int falukantUserId); bool isMainAdmin(const std::string &hashedUserId); - json getActiveConnections(); + nlohmann::json getActiveConnections(); void sendMessageToConnection(struct lws *wsi, const std::string &message); void addConnection(const std::string &userId, struct lws *wsi); void removeConnection(const std::string &userId, struct lws *wsi);