2022-03-14 18:06:54 +01:00
|
|
|
import { Component, OnInit } from "@angular/core";
|
2022-03-16 14:48:37 +01:00
|
|
|
import { StateService } from "src/app/services/state.service";
|
2022-04-01 00:25:46 +09:00
|
|
|
import { WebsocketService } from "src/app/services/websocket.service";
|
2022-03-14 18:06:54 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-graphs',
|
|
|
|
templateUrl: './graphs.component.html',
|
|
|
|
styleUrls: ['./graphs.component.scss'],
|
|
|
|
})
|
|
|
|
export class GraphsComponent implements OnInit {
|
2022-04-01 00:25:46 +09:00
|
|
|
constructor(
|
|
|
|
public stateService: StateService,
|
|
|
|
private websocketService: WebsocketService
|
|
|
|
) { }
|
2022-03-14 18:06:54 +01:00
|
|
|
|
|
|
|
ngOnInit(): void {
|
2022-04-01 00:25:46 +09:00
|
|
|
this.websocketService.want(['blocks']);
|
2022-03-14 18:06:54 +01:00
|
|
|
}
|
|
|
|
}
|