UNPKG

dbus-native

Version:

D-bus protocol implementation in native javascript

23 lines (20 loc) 383 B
const dbus = require('../index'); var bus = dbus.sessionBus(); // TODO: put all matches to one string here bus.invoke({ member: 'AddMatch', signature: 's', body: ["type='signal',"] }); /* bus.invoke({ member: 'AddMatch', signature: 's', body: ["type='method_call'"] }); bus.invoke({ member: 'AddMatch', signature: 's', body: ["type='method_return'"] }); */