Skip to content
Snippets Groups Projects
  1. Aug 21, 2014
  2. Aug 19, 2014
  3. Aug 18, 2014
  4. Aug 15, 2014
    • Kegan Dougal's avatar
      Remove old polling stuff from RoomController. Added service comments. Do not... · 5ac87292
      Kegan Dougal authored
      Remove old polling stuff from RoomController. Added service comments. Do not start the event stream on startup unless you have credentials.
      5ac87292
    • Kegan Dougal's avatar
      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
    • Kegan Dougal's avatar
      Added event handler service which.. handles events. More specifically, it... · 5dbceaf5
      Kegan Dougal authored
      Added event handler service which.. handles events. More specifically, it $broadcasts events depending on their type, and does processing on events (shuffling keys, adding events to $rootScope so displays will automatically update, sending delivery receipts, and so on). Some of this logic was previously contained in the RoomController, which fails the moment you add >1 room into the mix, hence requiring a Service to handle events, rather than having each individual controller maintain their part of the world.
      5dbceaf5
    • Kegan Dougal's avatar
      Added event stream service which neatly blobs together requests / state for... · 8bf3994c
      Kegan Dougal authored
      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.
      8bf3994c
Loading