mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 06:32:55 +00:00 
			
		
		
		
	Remove WebSocketService from dashboard component
This commit is contained in:
		@@ -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();
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user