feat: subscribe to websocket for cluster updates

This commit is contained in:
2025-10-27 13:05:35 +01:00
parent 858be416eb
commit 7784365361
2 changed files with 130 additions and 88 deletions

View File

@@ -23,7 +23,7 @@ LEDLab is a tool for streaming animations to LED matrices connected to SPORE nod
The Node.js server provides the backend for SPORE LEDLab:
- **Gateway Integration**: Queries spore-gateway for node discovery (requires spore-gateway to be running)
- **Gateway Integration**: Subscribes to spore-gateway WebSocket for real-time cluster updates (requires spore-gateway to be running)
- **UDP Frame Streaming**: Sends animation frames to SPORE nodes via UDP on port 4210
- **WebSocket API**: Real-time bidirectional communication with the web UI
- **Preset Management**: Manages animation presets with configurable parameters
@@ -51,7 +51,7 @@ Web UI (Browser) <--WebSocket--> Server <--UDP--> SPORE Nodes
Preset Engine
|
Frame Generation (60fps)
Gateway API (Discovery)
Gateway WebSocket (Real-time cluster updates)
```
## Build