Commit e9b7b4ce authored by Randall Leeds's avatar Randall Leeds

Open socket after session, not delay

It makes a lot more sense to start the websocket connection as soon as
the session is loaded, rather than using an arbitrary delay time of
five seconds.
parent 7d818028
...@@ -53,6 +53,7 @@ class App ...@@ -53,6 +53,7 @@ class App
session.$promise.then (data) -> session.$promise.then (data) ->
angular.extend $scope.model, data angular.extend $scope.model, data
$scope.initUpdater()
$scope.$watch 'model.personas', (newValue, oldValue) => $scope.$watch 'model.personas', (newValue, oldValue) =>
if newValue?.length if newValue?.length
...@@ -430,9 +431,6 @@ class App ...@@ -430,9 +431,6 @@ class App
method: 'blinkBuckets' method: 'blinkBuckets'
, 500 , 500
$timeout =>
$scope.initUpdater()
, 5000
class Annotation class Annotation
this.$inject = [ this.$inject = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment