SDK
SDK Javascript v7.x
2

Constructor #

Use this constructor to create a new Observer instance.

Arguments #

Copied to clipboard!
Observer(sdk, [options]);

Argument Type Description
sdk
Kuzzle
SDK instanciated and connected
options
object
Additional options

options #

Observer options.

Property Type
(default)
Description
pullingDelay
number

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

Usage #

Copied to clipboard!
const observer = new Observer(sdk);