Skip to content
New issue

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

如何群发消息或通知? #18

Open
smil4ever opened this issue Dec 20, 2020 · 3 comments
Open

如何群发消息或通知? #18

smil4ever opened this issue Dec 20, 2020 · 3 comments

Comments

@smil4ever
Copy link

看了logic模块的api,只看到了push(点对点)、pushRoom(组发)的接口,没看到群发通知的接口,难不成是push循环调用?或者是pushRoom到所有roomid ?

@LockGit
Copy link
Owner

LockGit commented Dec 20, 2020

pushRoom向指定房间内发消息就行了,如果想向所有人发消息,那么所有人加入同一个房间号就行

@smil4ever
Copy link
Author

是想向所有在线用户发消息,不把他们加入同一个房间,类似广播群发通知,这样的话怎么实现?

@LockGit
Copy link
Owner

LockGit commented Dec 20, 2020

那就挨个房间广播,相当于广播群发了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants