added tests and css modules to LoginPage components
This commit is contained in:
@@ -16,13 +16,13 @@ module.exports = socket => {
|
||||
};
|
||||
|
||||
const handleGetAllRooms = async () => {
|
||||
let rooms = await getRooms();
|
||||
const rooms = await getRooms();
|
||||
sendToOnePlayerRooms(socket.id, rooms);
|
||||
};
|
||||
|
||||
const handleCreateRoom = async data => {
|
||||
createNewRoom(data);
|
||||
socket.to(socket.id).emit('room:created');
|
||||
sendToOnePlayerRooms(socket.id, await getRooms());
|
||||
};
|
||||
|
||||
socket.on('room:data', handleGetData);
|
||||
|
||||
Reference in New Issue
Block a user