![]() |
MantisBase v0.4.9
|
Drogon WebSocket controller for the realtime endpoint. More...
#include <ws.h>


Public Member Functions | |
| MbRealtimeWSController (const MantisBase &app) | |
| void | handleNewMessage (const drogon::WebSocketConnectionPtr &, std::string &&, const drogon::WebSocketMessageType &) override |
| void | handleNewConnection (const drogon::HttpRequestPtr &, const drogon::WebSocketConnectionPtr &) override |
| void | handleConnectionClosed (const drogon::WebSocketConnectionPtr &) override |
| WS_PATH_LIST_BEGIN | WS_PATH_ADD ("/api/v1/realtime/ws") |
Drogon WebSocket controller for the realtime endpoint.
Registered at WS /api/v1/realtime/ws. Disabled when MB_DISABLE_REALTIME_WS is truthy.
|
inlineexplicit |
|
override |
Tear down session state when the client disconnects.
|
override |
Optional auth at connect; sends welcome with client_id and empty topics.
|
override |
Handle subscribe, unsubscribe, ping, and auth-upgrade messages.
| WS_PATH_LIST_BEGIN mb::MbRealtimeWSController::WS_PATH_ADD | ( | "/api/v1/realtime/ws" | ) |