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.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/src/services/WebSocketService.ts b/ui/src/services/WebSocketService.ts
index 6d951618..3df69457 100644
--- a/ui/src/services/WebSocketService.ts
+++ b/ui/src/services/WebSocketService.ts
@@ -38,6 +38,7 @@ import {
PrivateMessageForm,
EditPrivateMessageForm,
GetPrivateMessagesForm,
+ GetCommentsForm,
UserJoinForm,
MessageType,
WebSocketJsonResponse,
@@ -172,6 +173,11 @@ export class WebSocketService {
this.ws.send(this.wsSendWrapper(UserOperation.GetPosts, form));
}
+ public getComments(form: GetCommentsForm) {
+ this.setAuth(form, false);
+ this.ws.send(this.wsSendWrapper(UserOperation.GetComments, form));
+ }
+
public likePost(form: CreatePostLikeForm) {
this.setAuth(form);
this.ws.send(this.wsSendWrapper(UserOperation.CreatePostLike, form));