Merge branch 'Chatte' into server

This commit is contained in:
2023-12-27 09:59:19 +01:00
10 changed files with 155 additions and 41 deletions

View File

@ -54,13 +54,14 @@ class Channel {
return new_messages;
}
async sendMessageChannel(message) {
async sendMessageChannel(message, receivers_id) {
if (this.chatSocket == undefined)
return;
this.chatSocket.send(JSON.stringify({
'message':message
'message':message,
'receivers_id':receivers_id,
}));
}