You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**offline**: If activated, the client will only fetch the configuration inside your snapshot file. The default value is 'false'.
62
63
-**logger**: If activated, it is possible to retrieve the last results from a given Switcher key using Switcher.getLogger('KEY')
63
64
-**snapshotLocation**: Location of snapshot files. The default value is './snapshot/'.
64
-
-**snapshotAutload**: If activated, snapshot folder and files are going to be created automatically.
65
65
-**silentMode**: If activated, all connectivity issues will be ignored and the client will automatically fetch the configuration into your snapshot file.
66
66
-**retryAfter** : Time given to the module to re-establish connectivity with the API - e.g. 5s (s: seconds - m: minutes - h: hours).
67
67
68
-
## Pre-execution
69
-
Before you call the API, there is one single step you need to execute to complete the configuration.
70
-
If you are not running the API expecting to use the offline features, you can ignore this step.
71
-
72
-
After instantiating the Switcher, you need to load the snapshot engine to watch for changes in your Domain structure.
73
-
```js
74
-
awaitswitcher.loadSnapshot();
75
-
```
76
-
77
68
## Executing
78
69
There are a few different ways to call the API using the JavaScript module.
79
70
Here are some examples:
@@ -82,7 +73,7 @@ Here are some examples:
82
73
Invoking the API can be done by instantiating the switcher and calling *isItOn* passing its key as a parameter.
0 commit comments