Fixed sending message.

This commit is contained in:
SamTV12345 2024-02-20 10:57:46 +01:00
parent 44c26f9696
commit 3707f554be

View file

@ -45,8 +45,10 @@ describe('Messages in the COLLABROOM', function () {
socketJsonObj.send = (...args) => { socketJsonObj.send = (...args) => {
startSend(); startSend();
sendP.then(() => { sendP.then(() => {
socketJsonObj.emit = sendBackup; socketJsonObj.send = sendBackup;
socketJsonObj.emit('message', ...args); socketJsonObj.send('message', {
...args,
});
}); });
}; };
return finishSend; return finishSend;