mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 08:14:56 -04:00
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:
parent
c5f2da5875
commit
8bf3994c2e
5 changed files with 91 additions and 14 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue