Local WebSocket endpoint used by the Native frontend after Wi-Fi is ready.
More...
#include <direct_websocket_service.h>
Local WebSocket endpoint used by the Native frontend after Wi-Fi is ready.
Definition at line 47 of file direct_websocket_service.h.
◆ RequestHandler
◆ ClientCountCallback
◆ ~IDirectWebSocketService()
| virtual espectre::IDirectWebSocketService::~IDirectWebSocketService |
( |
| ) |
|
|
virtualdefault |
◆ setup()
Configure and start the endpoint.
Safe to call again after shutdown.
◆ loop()
| virtual void espectre::IDirectWebSocketService::loop |
( |
| ) |
|
|
pure virtual |
Pump deferred receive, dispatch, and send work from the frontend task.
◆ shutdown()
| virtual void espectre::IDirectWebSocketService::shutdown |
( |
| ) |
|
|
pure virtual |
Stop accepting clients, close sockets, and release queued messages.
◆ running()
| virtual bool espectre::IDirectWebSocketService::running |
( |
| ) |
const |
|
pure virtual |
◆ client_count()
| virtual size_t espectre::IDirectWebSocketService::client_count |
( |
| ) |
const |
|
pure virtual |
◆ publish_event()
| virtual bool espectre::IDirectWebSocketService::publish_event |
( |
const std::string & | event_name, |
|
|
const std::string & | data_json, |
|
|
bool | replaceable_telemetry ) |
|
pure virtual |
Queue a normalized event for every connected client.
Telemetry events may replace an older queued event with the same name. State transitions and command responses must never be replaced by telemetry. Returns false when no client can accept the event.
◆ diagnostics()
The documentation for this class was generated from the following file: