room #
Creates a new Room object, using its constructor.
room([options]) #
Arguments | Type | Description |
---|---|---|
options | object | Subscription configuration |
Options #
Provided options are passed directly to the Room object constructor.
Return Value #
Returns the newly created Room object.
Usage #
let room = kuzzle
.collection('collection', 'index')
.room()
.renew({in: {field: ['some', 'new', 'filter']}}, function (err, res) {
// handle notifications
});
Edit this page on Github(opens new window)