diff --git a/frontend/src/app/components/status-view/status-view.component.ts b/frontend/src/app/components/status-view/status-view.component.ts index c7c821184..dd3eef51f 100644 --- a/frontend/src/app/components/status-view/status-view.component.ts +++ b/frontend/src/app/components/status-view/status-view.component.ts @@ -1,9 +1,16 @@ -import { Component } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; +import { WebsocketService } from 'src/app/services/websocket.service'; @Component({ selector: 'app-status-view', templateUrl: './status-view.component.html' }) -export class StatusViewComponent { - constructor() { } +export class StatusViewComponent implements OnInit { + constructor( + private websocketService: WebsocketService, + ) { } + + ngOnInit() { + this.websocketService.want(['mempool-blocks', 'stats']); + } }