SDK
SDK Javascript v7.x
2

Constructor #

Use this constructor to create a new Observer instance.

Arguments #

Observer(sdk, [options]);

ArgumentTypeDescription
sdk
Kuzzle
SDK instanciated and connected
options
object
Additional options

options #

Observer options.

PropertyType
(default)
Description
pullingDelay
number

(5000)
Refresh delay in ms when the SDK is using the HTTP protocol.

Usage #

const observer = new Observer(sdk);