Move the stopwatches to the eventsource stream (#14588)

Move the stopwatches to the eventsource stream

Use the /user/events eventsource to update the stopwatches
instead of polling /api/v1/user/stopwatches if the eventsource
is enabled.

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath 2021-02-19 10:05:35 +00:00 committed by GitHub
parent 430b3b7806
commit 092299891f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 89 additions and 1 deletions

View file

@ -12,6 +12,7 @@ class Source {
this.listen('open');
this.listen('logout');
this.listen('notification-count');
this.listen('stopwatches');
this.listen('error');
}