📅  最后修改于: 2022-03-11 15:03:05.640000             🧑  作者: Mango
const joinRoom = () => {
if(name && roomId) {
socket.emit('join-room', {
roomId: roomId,
userName: name,
})
}
}