How to use the error function from pull-stream

Find comprehensive JavaScript pull-stream.error code examples handpicked from public code repositorys.

137
138
139
140
141
142
143
144
145
```txt
        error()
--e---------------------
```
```js
const source = pull.error()
const sink = pull.log()
pull(source, sink)
```
fork icon46
star icon839
watch icon48

10
11
12
13
14
15
16
17
18
19
20
21
const ref = require('ssb-ref')


const MINUTE = 60 * 1000


const dummyRemoteApi = {
  attendants: () => pull.error(new Error('not implemented on the client')),
  metadata (cb) { cb(new Error('not implemented on the client')) },
  members: () => pull.error(new Error('not implemented on the client')),
  listAliases (cb) { cb(new Error('not implemented on the client')) },
  registerAlias (_alias, _sig, cb) { cb(new Error('not implemented on the client')) },
fork icon2
star icon3
watch icon6