docs(api): add store closed event

This commit is contained in:
Kia 2018-07-25 21:08:31 -04:00 committed by GitHub
parent b35e0f67b1
commit e0693720f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
API.md
View File

@ -75,6 +75,7 @@ const db = await orbitdb.keyvalue('profile')
- [load.progress](#loadprogress)
- [ready](#ready)
- [write](#write)
- [closed](#closed)
## Public Instance Methods
### orbitdb.create(name, type, [options])
@ -546,3 +547,9 @@ db.events.on('write', (dbname, hash, entry) => ... )
```
Emitted after an entry was added locally to the database. *hash* is the IPFS hash of the latest state of the database. *entry* is the added database op.
#### `closed`
Emitted once the database has finished closing.
```javascript
db.events.on('closed', (dbname) => ... )
```