Skip to content
Snippets Groups Projects
  • Kegan Dougal's avatar
    7ddb7a5c
    Event streaming now happens on an app level, rather than a per-room level.... · 7ddb7a5c
    Kegan Dougal authored
    Event streaming now happens on an app level, rather than a per-room level. Make eventStreamService manage it's own repolling provided no one calls stop() on it. Couple the stream with eventHandlerService so any controller can just blithely call eventStreamService.resume() and expect to 'get stuff' without having to handle promises (though resume() still returns a promise for that request and proxies it through $q). Kill and reset the stream if you logout.
    7ddb7a5c
    History
    Event streaming now happens on an app level, rather than a per-room level....
    Kegan Dougal authored
    Event streaming now happens on an app level, rather than a per-room level. Make eventStreamService manage it's own repolling provided no one calls stop() on it. Couple the stream with eventHandlerService so any controller can just blithely call eventStreamService.resume() and expect to 'get stuff' without having to handle promises (though resume() still returns a promise for that request and proxies it through $q). Kill and reset the stream if you logout.