Commit Graph

15 Commits

Author SHA1 Message Date
7a37901fb2 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.
2025-09-28 21:23:05 +02:00
3cc5405292 feat(streaming): introduce WebSocket Streaming API bridging event bus
ApiServer: add AsyncWebSocket at /ws; accept JSON {event, payload} (string or object) and dispatch via ctx.fire; mirror all local events to clients using NodeContext::onAny.\nNodeContext: add onAny subscriber API.\nNeoPatternService: add api/neopattern/color event to set solid color.\nCluster: centralize cluster/broadcast sending in core; services delegate.\nAPI: add generic /api/node/event and /api/cluster/event endpoints in respective services.\nTests: add ws-color-client, ws-cluster-broadcast-color, http-cluster-broadcast-color.\nDocs: add StreamingAPI.md; update README and test/README.\nFixes: robust WS JSON parsing on ESP8266 and payload handling.
2025-09-28 21:10:26 +02:00
b9b91d71b5 docs: add ClusterBroadcast guide for CLUSTER_EVENT and cluster/broadcast flow
Documents centralized cluster broadcasting: service -> ctx.fire("cluster/broadcast", eventJson) -> UDP CLUSTER_EVENT -> peer ctx.fire(event, data). Includes message format, service/core responsibilities, logging, networking notes, and troubleshooting.
2025-09-28 13:45:10 +02:00
69bc3fc829 docs: update 2025-09-25 22:47:28 +02:00
356ec3d381 feat: simplify udp listen 2025-09-25 20:44:31 +02:00
921eec3848 docs: update 2025-09-24 21:12:22 +02:00
702eec5a13 feat: releay ui example, simplify logging 2025-09-16 15:32:49 +02:00
8a2988cb50 feat: logging service 2025-09-16 10:10:23 +02:00
adde7a3676 docs: add FS and FileService info 2025-09-16 08:27:05 +02:00
72b559e047 refactor: simplify endpoint and capabilities 2025-09-13 19:15:07 +02:00
12caeb0be6 feat: services (#2) 2025-09-13 13:45:24 +02:00
07032b56ca docs: remove wrong env vars 2025-08-22 16:11:37 +02:00
5d6a7cf468 docs: fix wrong documentation 2025-08-22 16:10:59 +02:00
30a5f8b8cb feat: task manager endpoint, updated documentation 2025-08-22 15:47:08 +02:00
0d51816bd3 feat: bind tasks instead of passing fn ptrs when registering a task 2025-08-21 22:24:46 +02:00