Requesting data Registering as a listener Receiving data updates Exit application Keyboard keypress Keyboard text Media control Send notification Open path Open URL Power control

WebSocket - Registering as a Listener

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"] }
}