SDK
SDK Javascript v5.x
1

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 #

Copied to clipboard!
let room = kuzzle
  .collection('collection', 'index')
  .room()
  .renew({in: {field: ['some', 'new', 'filter']}}, function (err, res) {
    // handle notifications
  });