Browse Source

socket emit in the wrong place

master
Pheuw1 2 years ago
parent
commit
f76e84461a
  1. 7
      front/volume/src/components/Chat.svelte

7
front/volume/src/components/Chat.svelte

@ -52,9 +52,6 @@
});
onDestroy(() => {
socket.emit("LeaveChanel", async (response) => {
console.log(response.status);
});
clearInterval(usersInterval)
socket.disconnect();
});
@ -290,7 +287,9 @@
const leaveChannel = async () => {
await show_popup("Press \"Okay\" to leave this channel?", false);
if ($content == 'ok') {
socket.emit('leaveChannel');
socket.emit("LeaveChanel", async (response) => {
console.log(response.status);
});
}
}
function onSendMessage() {

Loading…
Cancel
Save