Last active
May 10, 2019 11:46
-
-
Save Aschen/b048569a84bba7e097329472d075e3e8 to your computer and use it in GitHub Desktop.
Pub/Sub article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await kuzzle.realtime.publish('index', 'collection', { content: 'liia meh ry' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const filters = {}; | |
await kuzzle.realtime.subscribe('index', 'collection', filters, notification => { | |
// Do something with the notification | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment