2022-05-06 16:31:25 +04:00
|
|
|
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
2022-09-21 17:23:45 +02:00
|
|
|
import { WebsocketService } from '../../services/websocket.service';
|
2022-05-06 16:31:25 +04:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-lightning-wrapper',
|
|
|
|
templateUrl: './lightning-wrapper.component.html',
|
|
|
|
styleUrls: ['./lightning-wrapper.component.scss'],
|
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
|
|
})
|
2022-05-26 18:23:57 +04:00
|
|
|
export class LightningWrapperComponent implements OnInit {
|
2022-05-06 16:31:25 +04:00
|
|
|
|
|
|
|
constructor(
|
|
|
|
private websocketService: WebsocketService,
|
|
|
|
) { }
|
|
|
|
|
2022-05-26 18:23:57 +04:00
|
|
|
ngOnInit() {
|
|
|
|
this.websocketService.want(['blocks']);
|
|
|
|
}
|
|
|
|
|
2022-05-06 16:31:25 +04:00
|
|
|
}
|