Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit dcd43fa

Browse files
committed
Merge master into story_001.
This is a forward integration of a few small changes.
2 parents cf2d53e + 09ed16a commit dcd43fa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/api/thalireplicationmanager.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ var manager = new ThaliReplicationManager(db);
5757

5858
## Methods
5959

60-
### `ThaliReplicationManager.prototype.start(deviceName, port, dbName)`
60+
### `ThaliReplicationManager.prototype.start(port, dbName, [deviceName])`
6161

6262
This method starts the Thali Replication Manager with the given device name, port number used for synchronization and database name to synchronize. Once called this method emits the `starting` event. Once started, the `started` event is fired. If there is an error in starting the Thali Replication Manager, the `startError` event will fire.
6363

6464
#### Arguments:
65-
1. `deviceName`: `String` - the device name to start broadcasting.
66-
2. `port`: `Number` - the port number used for synchronization.
67-
3. `dbName`: `String` - the name of the database.
65+
1. `port`: `Number` - the port number used for synchronization.
66+
2. `dbName`: `String` - the name of the database.
67+
3. `deviceName`: `String` - (optional) the device name to start broadcasting. If not supplied, it will be obtained from the cryptomanager (as a public key hash).
6868

6969
#### Example:
7070

@@ -79,7 +79,7 @@ manager.on('started', function () {
7979
console.log('Thali replication manager started');
8080
});
8181

82-
manager.start('deviceName', 5000 /* port */, 'thali' /* db name */);
82+
manager.start(5000 /* port */, 'thali' /* db name */, 'deviceName' /* optional device name*/);
8383
```
8484
***
8585

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Follow the instructions at [http://jxcore.com/downloads/](http://jxcore.com/down
4444
installation worked:
4545
```
4646
$ jx -jxv
47-
v 0.3.0.5
47+
v 0.3.1.0
4848
```
4949

5050
### Install Cordova

0 commit comments

Comments
 (0)