Subscription Store
SubscriptionStore is the real-time event gateway for CDF. It bridges the RainMaker SDK's push events (cloud updates, local discovery) to observable node state inside your app.
What it does
When a device update arrives from the cloud or a local transport is discovered, SubscriptionStore receives it via two entry points:
nodeUpdates.listen(event)— handles parameter changes, connectivity updates, user-node operationstransport.listen(config)— registers new local transports (WiFi, BLE, Thread, etc.)
These listeners route events to nodeEventHandlers, which update NodeStore observables. Your UI components watch those observables with observer() and re-render automatically.
Don't call the SDK directly for updates. Adaptors own the subscription lifecycle and wire SDK callbacks to these listeners. This separation ensures one source of truth and makes it easy to trace event flow.

