阅读背景:

动态房间插座。io和节点

来源:互联网 

I'm trying to use the new "room" feature in Socket.io v.7 to create dynamic chat rooms, but I'm having problems getting static rooms to work in my example. Based on the URL the user selects they should end up in room1 or room2. Anything the user enters in the chat should be broadcast to users in the same room. I have 2 browsers (chrome & ff) each with a tab open to /room1 and /room2, however nothing I type in seems to be broadcast to the other tabs. What am I doing wrong?I'm trying to use the new "room" feature in Soc




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: