From 9d80fc44fc05f9a25082a1ea5b5678016ef02e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Sun, 4 Mar 2018 10:46:53 +0100 Subject: [PATCH] Expose TestmessagerComponent on /testmessager --- src/app/app-routing.module.ts | 4 +++- src/app/testmessager/testmessager.component.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 617bd99..7c5ac4a 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -5,13 +5,15 @@ import { DashboardComponent } from './dashboard/dashboard.component'; import { WebideComponent } from './webide/webide.component'; import { TerminalComponent } from './terminal/terminal.component'; import { MessagesComponent } from './messages/messages.component'; +import { TestmessagerComponent } from './testmessager/testmessager.component'; const routes: Routes = [ { path: '', redirectTo: '/dashboard', pathMatch: 'full'}, { path: 'dashboard', component: DashboardComponent}, { path: 'webide', component: WebideComponent }, { path: 'shell', component: TerminalComponent }, - { path: 'messages', component: MessagesComponent } + { path: 'messages', component: MessagesComponent }, + { path: 'testmessager', component: TestmessagerComponent } ]; @NgModule({ diff --git a/src/app/testmessager/testmessager.component.ts b/src/app/testmessager/testmessager.component.ts index 1b212b5..bd3582c 100644 --- a/src/app/testmessager/testmessager.component.ts +++ b/src/app/testmessager/testmessager.component.ts @@ -13,6 +13,7 @@ export class TestmessagerComponent implements OnInit { ngOnInit() { this.webSocketService.connect(); + this.webSocketService.observeKey('shell').subscribe(); // TODO: wtf } sendTestMessage() {