summaryrefslogtreecommitdiffstats
path: root/ui/src/services/WebSocketService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/services/WebSocketService.ts')
-rw-r--r--ui/src/services/WebSocketService.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/src/services/WebSocketService.ts b/ui/src/services/WebSocketService.ts
index 83e9ef1e..3ad0de44 100644
--- a/ui/src/services/WebSocketService.ts
+++ b/ui/src/services/WebSocketService.ts
@@ -71,12 +71,19 @@ export class WebSocketService {
.subscribe();
console.log(`Connected to ${wsUri}`);
+
+ if (UserService.Instance.user) {
+ }
}
public static get Instance() {
return this._instance || (this._instance = new this());
}
+ public userJoin() {
+ this.wsSendWrapper(UserOperation.ListCategories, undefined);
+ }
+
public login(loginForm: LoginForm) {
this.subject.next(this.wsSendWrapper(UserOperation.Login, loginForm));
}