← Back to BackgroundService domain

BackgroundService.startObserving

Enables event updates for the service.

Domain: BackgroundService experimental

Parameters

NameTypeDescription
serviceServiceName

Example Request

{
  "id": 1,
  "method": "BackgroundService.startObserving",
  "params": {
    "service": "service-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('BackgroundService.startObserving', {"service": "service-value"});
console.log(result);