mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
save
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user