feat(streaming): suppress WS echo via origin tagging

Inject _origin=ws:<clientId> into JSON payloads on inbound WS messages and strip it on broadcast while skipping the origin client. Documents behavior in StreamingAPI.md.
This commit is contained in:
2025-09-28 21:23:05 +02:00
parent 3cc5405292
commit 7a37901fb2
3 changed files with 55 additions and 14 deletions

View File

@@ -45,6 +45,7 @@ private:
TaskManager& taskManager;
std::vector<std::reference_wrapper<Service>> services;
std::vector<EndpointInfo> endpoints; // Single source of truth for endpoints
std::vector<AsyncWebSocketClient*> wsClients;
// Internal helpers
void registerEndpoint(const String& uri, int method,