![]() |
MantisBase v0.4.9
|
Server-Sent Events (SSE) manager for the realtime API. More...
#include <functional>#include <mutex>#include <set>#include <thread>#include <unordered_map>#include <nlohmann/json.hpp>#include <drogon/HttpResponse.h>#include "realtime.h"#include "realtime_session.h"#include "types.h"

Go to the source code of this file.
Classes | |
| class | mb::MbSSESession |
| Per-client SSE session state and async stream writer. More... | |
| class | mb::MbSSEMgr |
| Manages SSE routes, sessions, broadcast, and shared WebSocket cleanup. More... | |
Namespaces | |
| namespace | mb |
Server-Sent Events (SSE) manager for the realtime API.
Exposes GET and POST /api/v1/realtime:
Authentication is optional at connect; invalid tokens are treated as guest. MbAuth can be upgraded on POST subscribe but not downgraded or switched to another user.