socket.rooms返回undefined

时间:2015-07-28 11:39:39

标签: node.js socket.io

在我的io.on('connection')处理程序中我有

    socket.join('hell');
    console.log(socket.rooms); //prints out undefined

我知道socket.rooms应该返回套接字加入的所有房间的字符串列表,但不知何故在最新版本的socket.io中,它不会。

0 个答案:

没有答案
相关问题