📌  相关文章
📜  TypeError: undefined is not an object (evalating 'socket.emit') - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:05.640000             🧑  作者: Mango

代码示例1
const joinRoom = () => {
        if(name && roomId) {
            socket.emit('join-room', {
                roomId: roomId,
                userName: name,
            })
        }
    }