Remove WebSocketService from dashboard component

This commit is contained in:
Kristóf Tóth 2018-02-16 17:13:51 +01:00
parent c4c875ae3d
commit 1da9489be8

View File

@ -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();
}
}