This commit is contained in:
tiago.kayaya
2022-01-11 12:32:46 +01:00
parent d230d8cc80
commit a5b2b9eaea
5 changed files with 21 additions and 20 deletions
+3 -2
View File
@@ -137,9 +137,9 @@ export class ChatPage implements OnInit {
console.log("CHAT PAGE");
chatService.messages.subscribe(msg => {
/* chatService.messages.subscribe(msg => {
console.log("Response from Websocket server: "+msg);
});
}); */
}
ngOnInit() {
@@ -243,6 +243,7 @@ export class ChatPage implements OnInit {
console.log("new message from client to websocket: ", this.message);
this.chatService.messages.next(this.message);
this.message.msg = "";
this.loadMessage();
}