socket are working but it's not the right way

This commit is contained in:
hugogogo
2023-01-09 16:47:30 +01:00
parent e23699dd51
commit 3eb338d822
4 changed files with 14 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ export async function create_room(room_name, room_type)
{
console.log("in create_room");
let formData = {
let form_data = {
room_name: room_name,
room_type: room_type,
};
@@ -79,6 +79,7 @@ export async function change_room(name)
console.log(data.message);
await get_room_messages();
socket.emit('join', name);
room_name.set(name);
layout.set("room");