How to use the dbus-next.RequestNameReply function in dbus-next

To help you get started, we’ve selected a few dbus-next examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dbusjs / mpris-service / src / index.js View on Github external
.then((reply) => {
      if (reply === dbus.RequestNameReply.EXISTS) {
        this.serviceName = `${this.serviceName}.instance${process.pid}`;
        return this._bus.requestName(this.serviceName);
      }
    })
    .catch((err) => {