Repost "want" after reconnect.

This commit is contained in:
Simon Lindh
2019-08-09 21:45:31 +03:00
parent c206cc8eb5
commit 1f3dd1f8a6
5 changed files with 29 additions and 10 deletions

View File

@@ -154,10 +154,10 @@ export class StatisticsComponent implements OnInit {
switchMap(() => {
this.spinnerLoading = true;
if (this.radioGroupForm.controls['dateSpan'].value === '2h') {
this.apiService.sendWebSocket({'action': 'want', data: ['live-2h-chart']});
this.apiService.webSocketWant(['live-2h-chart']);
return this.apiService.list2HStatistics$();
}
this.apiService.sendWebSocket({'action': 'want', data: ['']});
this.apiService.webSocketWant([]);
if (this.radioGroupForm.controls['dateSpan'].value === '24h') {
return this.apiService.list24HStatistics$();
}