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

@@ -27,7 +27,7 @@ export class TelevisionComponent implements OnInit {
) { }
ngOnInit() {
this.apiService.sendWebSocket({'action': 'want', data: ['projected-blocks', 'live-2h-chart']});
this.apiService.webSocketWant(['projected-blocks', 'live-2h-chart']);
const labelInterpolationFnc = (value: any, index: any) => {
return index % 6 === 0 ? formatDate(value, 'HH:mm', this.locale) : null;