update api for docs/index.md

This commit is contained in:
Braydon Fuller 2015-03-17 22:03:55 -04:00
parent df632f35c6
commit d0af31938b
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
<img src="http://bitcore.io/css/images/bitcore-p2p.svg" alt="bitcore payment protocol" height="35" width="102">
Bitcore P2P
=======

View File

@ -21,7 +21,7 @@ npm install bitcore-p2p --save
```javascript
var Peer = require('bitcore-p2p').Peer;
var peer = new Peer('5.9.85.34');
var peer = new Peer({host: '5.9.85.34'});
// handle events
peer.on('inv', function(message) {