1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-19 16:42:09 +03:00

Design the API for the scheduler and hook MatrixClient up to it.

Scheduler itself still needs internal impl.
This commit is contained in:
Kegan Dougal
2015-06-19 15:50:05 +01:00
parent 8a9f84a4b2
commit 2f78ceb6fc
3 changed files with 135 additions and 75 deletions

View File

@@ -57,9 +57,7 @@ module.exports.createClient = function(opts) {
}
opts.request = request;
opts.store = new module.exports.MatrixInMemoryStore();
opts.scheduler = new module.exports.MatrixScheduler(
function() {} // TODO
);
opts.scheduler = new module.exports.MatrixScheduler();
return new module.exports.MatrixClient(opts);
};