Commit c323a890 authored by nanahira's avatar nanahira

remove unused api

parent 665e7220
...@@ -30,7 +30,7 @@ export class LobbyComponent implements OnInit { ...@@ -30,7 +30,7 @@ export class LobbyComponent implements OnInit {
@ViewChild('search') @ViewChild('search')
search: ElementRef; search: ElementRef;
private messages: WebSocket; //private messages: WebSocket;
constructor(private appsService: AppsService, private loginService: LoginService, constructor(private appsService: AppsService, private loginService: LoginService,
private settingsService: SettingsService, private ref: ChangeDetectorRef) { private settingsService: SettingsService, private ref: ChangeDetectorRef) {
...@@ -58,7 +58,7 @@ export class LobbyComponent implements OnInit { ...@@ -58,7 +58,7 @@ export class LobbyComponent implements OnInit {
} }
this.ref.detectChanges(); this.ref.detectChanges();
let url = new URL('wss://api.moecube.com:3100'); /* let url = new URL('wss://api.moecube.com:3100');
let params: URLSearchParams = url.searchParams; let params: URLSearchParams = url.searchParams;
params.set('user_id', this.loginService.user.email); params.set('user_id', this.loginService.user.email);
this.messages = new ReconnectingWebSocket(url); this.messages = new ReconnectingWebSocket(url);
...@@ -67,7 +67,7 @@ export class LobbyComponent implements OnInit { ...@@ -67,7 +67,7 @@ export class LobbyComponent implements OnInit {
console.log(data); console.log(data);
this.apps = await this.appsService.loadApps(); this.apps = await this.appsService.loadApps();
this.currentApp = this.apps.get(this.currentApp.id)!; this.currentApp = this.apps.get(this.currentApp.id)!;
}; }; */
// $(this.search.nativeElement).typeahead(<any>{ // $(this.search.nativeElement).typeahead(<any>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment