Added event stream service which neatly blobs together requests / state for the event stream. This depends on matrix service to do the actual hit. Currently this has exactly the same behaviour as before.

This commit is contained in:
Kegan Dougal 2014-08-15 10:20:14 +01:00
parent c5f2da5875
commit 8bf3994c2e
5 changed files with 91 additions and 14 deletions

View file

@ -297,6 +297,15 @@ angular.module('matrixService', [])
return doBaseRequest(config.identityServer, "POST", path, {}, data, headers);
},
// start listening on /events
getEventStream: function(from, timeout) {
var path = "/events";
var params = {
from: from,
timeout: timeout
};
return doRequest("GET", path, params);
},
//
testLogin: function() {