#include <algorithm>
#include <chrono>
#include <cstdint>
#include <functional>
#include <map>
#include <memory>
#include <optional>
#include <shared_mutex>
#include <string_view>
#include <thread>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <nlohmann/json.hpp>
#include <websocketpp/config/asio.hpp>
#include <websocketpp/server.hpp>
#include "callback_queue.hpp"
#include "common.hpp"
#include "parameter.hpp"
#include "regex_utils.hpp"
#include "serialization.hpp"
#include "server_interface.hpp"
#include "websocket_logging.hpp"
Go to the source code of this file.
◆ FOXGLOVE_DEBOUNCE
#define FOXGLOVE_DEBOUNCE |
( |
|
f, |
|
|
|
ms |
|
) |
| |
Value: { \
static auto last_call = std::chrono::system_clock::now(); \
const auto now = std::chrono::system_clock::now(); \
if (std::chrono::duration_cast<std::chrono::milliseconds>(now - last_call).count() > ms) { \
last_call = now; \
f(); \
} \
}
Definition at line 31 of file websocket_server.hpp.