We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我看到代码里面,channel和客户端链接绑定。出席聊天室时,会更新channel的next/prev, 如果玩家多个room需要出席。channel的 next/prev 会在多个room中来回变动。请问下,是不是我代码阅读后理解有问题,或者说目前这个实现不支持,一条链接出席多个room
The text was updated successfully, but these errors were encountered:
一个人可以加入不同的room,roomId是不同的,加入其他的room,会在当前的room下多一个channel,是隔离的
Sorry, something went wrong.
我理解你说的,一个客户端连接,应该是不能同时加入不同的房间,会修改channel的 next/pre到不同的房间下面了。。如果是同时,应该是直接在room下直接保存 channel这个对象(比如:用切片/map等等);
如果想同时加入不同的房间,按照现有代码,重新发送一个 ws请求,建立新连接,加入新房间
@gofish2020 是这样,channel就是保存在room下的,加入不同的房间,相当于在新的房间建连并生成一个新的channel
No branches or pull requests
我看到代码里面,channel和客户端链接绑定。出席聊天室时,会更新channel的next/prev, 如果玩家多个room需要出席。channel的 next/prev 会在多个room中来回变动。请问下,是不是我代码阅读后理解有问题,或者说目前这个实现不支持,一条链接出席多个room
The text was updated successfully, but these errors were encountered: