diff --git a/src/app/messages/messages.component.ts b/src/app/messages/messages.component.ts index b164f9e..38301f0 100644 --- a/src/app/messages/messages.component.ts +++ b/src/app/messages/messages.component.ts @@ -21,6 +21,7 @@ export class MessagesComponent implements OnInit { } ngOnInit() { + this.websocketService.connect(); this.websocketService.observeAnchor('message').subscribe( (event) => { this.messages.push(event.data); diff --git a/src/app/webide/webide.component.ts b/src/app/webide/webide.component.ts index d0f8670..e6e25fd 100644 --- a/src/app/webide/webide.component.ts +++ b/src/app/webide/webide.component.ts @@ -42,7 +42,6 @@ export class WebideComponent implements OnInit { ngOnInit() { this.webSocketService.connect(); - this.webSocketService.send('reset', ''); this.subscribeWS(); this.requestCode(); }