To register as a listener, connect to the WebSocket at /api/websocket
and send a message with the event REGISTER_DATA_LISTENER
including each module you want to subscribe to.
{
"id": "abc123",
"token": "abc123",
"event": "REGISTER_DATA_LISTENER",
"data": { "modules": ["cpu", "memory", "system"] }
}