remove pointless examples

This commit is contained in:
Feross Aboukhadijeh 2014-06-03 21:29:45 -07:00
parent ec7c1e8a37
commit 69e25b5d2c
1 changed files with 0 additions and 12 deletions

View File

@ -96,28 +96,16 @@ wire.use(ut_metadata(metadata))
Ask the peer to send metadata. Ask the peer to send metadata.
```js
wire.ut_metadata.fetch()
```
#### `ut_metadata.cancel()` #### `ut_metadata.cancel()`
Stop asking the peer to send metadata. Stop asking the peer to send metadata.
```js
wire.ut_metadata.cancel()
```
#### `ut_metadata.setMetadata(metadata)` #### `ut_metadata.setMetadata(metadata)`
Set the metadata. If you didn't have the metadata at the time `ut_metadata` was Set the metadata. If you didn't have the metadata at the time `ut_metadata` was
initialized, but you end up getting it from another peer (or somewhere else), you should initialized, but you end up getting it from another peer (or somewhere else), you should
call `setMetadata` so the metadata will be available to the peer. call `setMetadata` so the metadata will be available to the peer.
```js
wire.ut_metadata.setMetadata(metadata)
```
#### `ut_metadata.on('metadata', function (metadata) {})` #### `ut_metadata.on('metadata', function (metadata) {})`
Fired when metadata is available and verified to be correct. Called with a single Fired when metadata is available and verified to be correct. Called with a single