Skip to content

Commit

Permalink
remove reference to socat
Browse files Browse the repository at this point in the history
  • Loading branch information
sidorares committed Oct 2, 2014
1 parent 4f4ec49 commit 391b4d9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ D-bus protocol client and server for node.js
Installation
------------

Important: install `socat` to be able to use session bus.

```shell
npm install dbus-native
```
or

```shell
git clone https://github.com/sidorares/node-dbus # clone the repo
cd node-dbus
cd node-dbus
npm install # install dependencies
sudo cp examples/com.github.sidorares.dbus.Example.conf /etc/dbus-1/system.d/ # if you want to test examples/service.js
```
Expand All @@ -30,13 +28,13 @@ Short example using desktop notifications service
var dbus = require('dbus-native');
var sessionBus = dbus.sessionBus();
sessionBus.getService('org.freedesktop.Notifications').getInterface(
'/org/freedesktop/Notifications',
'/org/freedesktop/Notifications',
'org.freedesktop.Notifications', function(err, notifications) {

// dbus signals are EventEmitter events
notifications.on('ActionInvoked', function() {
console.log('ActionInvoked', arguments);
});
});
notifications.on('NotificationClosed', function() {
console.log('NotificationClosed', arguments);
});
Expand Down Expand Up @@ -65,7 +63,7 @@ connection has only one method, `message(msg)`
message fields:
- type - methodCall, methodReturn, error or signal
- path - object path
- interface
- interface
- destination
- sender
- member
Expand All @@ -74,12 +72,12 @@ message fields:
- body
- errorName
- replySerial

connection signals:
- connect - emitted after successful authentication
- message
- error

example:

```js
Expand Down Expand Up @@ -108,5 +106,5 @@ conn.on('message', function(msg) { console.log(msg); });
- http://search.cpan.org/~danberr/Net-DBus-1.0.0/ (seems to be native, but requires libdbus?)
- https://github.com/mvidner/ruby-dbus (native, sync)
- http://www.ndesk.org/DBusSharp (C#/Mono)

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/sidorares/node-dbus/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

0 comments on commit 391b4d9

Please sign in to comment.