mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 14:01:57 +00:00
21 lines
588 B
TypeScript
21 lines
588 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import { WebSocketService } from './websocket.service';
|
|
import { FSMUpdateService } from './fsmupdate.service';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.scss']
|
|
})
|
|
export class AppComponent implements OnInit {
|
|
title = 'app';
|
|
|
|
constructor(private webSocketService: WebSocketService, private fsmUpdateService: FSMUpdateService) {}
|
|
|
|
ngOnInit() {
|
|
this.webSocketService.connect();
|
|
this.webSocketService.send('reset', '');
|
|
this.fsmUpdateService.init();
|
|
}
|
|
}
|