Constructor #
Use this constructor to create a new Observer instance.
Arguments #
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 #
const observer = new Observer(sdk);