mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 23:41:55 +00:00
Remove WebSocketService from dashboard component
This commit is contained in:
parent
c4c875ae3d
commit
1da9489be8
@ -1,6 +1,4 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { WebSocketService } from '../websocket.service';
|
||||
import { FSMUpdateService } from '../fsmupdate.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard',
|
||||
@ -8,11 +6,8 @@ import { FSMUpdateService } from '../fsmupdate.service';
|
||||
styleUrls: ['./dashboard.component.scss']
|
||||
})
|
||||
export class DashboardComponent implements OnInit {
|
||||
constructor(private webSocketService: WebSocketService, private fsmUpdateService: FSMUpdateService) {}
|
||||
constructor() {}
|
||||
|
||||
ngOnInit() {
|
||||
this.webSocketService.connect();
|
||||
this.webSocketService.send('reset', '');
|
||||
this.fsmUpdateService.init();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user