Skip to content

Commit

Permalink
[splitio-services] moved all the services to the new packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
facundocabrera committed Feb 23, 2016
1 parent 7d5cf63 commit 85cd242
Show file tree
Hide file tree
Showing 78 changed files with 1,564 additions and 1,278 deletions.
5 changes: 4 additions & 1 deletion demos/browser-split/online/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ var sdk = splitio({
// featuresRefreshRate: 30000, // miliseconds
// segmentsRefreshRate: 40000, // miliseconds
// metricsRefreshRate: 300000 // miliseconds (randomly choosen based on this initial rate).
impressionsRefreshRate: 3000
}
});

console.info( sdk.getTreatment('early_evaluation') , '<= We are asking for a feature before the engine is ready');
// console.info( sdk.getTreatment('early_evaluation') , '<= We are asking for a feature before the engine is ready');

sdk.ready().then(function () {
console.info( sdk.getTreatment('js_sdk'), '<= This answer depends on how the engine is configured' );
console.info( sdk.getTreatment('js_sdk'), '<= This answer depends on how the engine is configured' )
console.info( sdk.getTreatment('js_sdk'), '<= This answer depends on how the engine is configured' )
});
7 changes: 4 additions & 3 deletions demos/express-split/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ if (process.env.NODE_ENV === 'offline') {
authorizationKey: 'c1l5vkd50gimccout3c03pntbu'
},
scheduler: {
// featuresRefreshRate: 5000,
// segmentsRefreshRate: 5000 * 3
metricsRefreshRate: 10000
featuresRefreshRate: 1000,
segmentsRefreshRate: 1000,
metricsRefreshRate: 30000,
impressionsRefreshRate: 30000
}
});
}
Expand Down
Loading

0 comments on commit 85cd242

Please sign in to comment.