Version 2.5/Kvdbs
Listening for Changes
Listening for events related to KVDBs and updating your app's state accordingly will allow you to build e.g., instant mapping features.
Types of Events
The lists below outline all the event types available in KVDBs and entries in PrivMX.
KVDB events:
kvdbCreated
- triggers when a new KVDB is created in your ContextkvdbDeleted
- triggers when a KVDB is deleted from your ContextkvdbUpdated
- triggers when a KVDB is updatedkvdbStatsChanged
- triggers when an entry is created to a KVDB or an entry has been deleted
Entries events:
kvdbNewEntry
- triggers when an entry was created in a KVDBkvdbEntryDeleted
triggers when an entry was deleted from a KVDBkvdbEntryUpdated
- triggers when an entry was updated
Handling KVDB and Entries Events
Before receiving Events, your application has to start an event loop and subscribe to a specific channel. Afterwards you can setup a listener.
Here is an example how to do it in your own project:
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.