WebSocket Events List of events Device List change
April 13, 2023 at 2:39 AMDevice List change event
When a device is added to, or removed from the system, the list of devices changes.
The SpringCard Companion Service then broadcast an event to all WebSocket clients, to notify the change.
Event specification
event : Devices.ListChange
params : a DeviceIds
array containing the list of DeviceId for all SpringCard devices
Example
{
"jsonrpc": "2.0",
"event": "Devices.ListChange",
"params":
{
"DeviceIds":
[
"yP7ECTgoKOQKqYUpGEp4SA",
"K78iXyzDIc1_Hem3hf0fhA"
]
}
}