开发者

How to configure XMPP to allow all logged in user to see each other and chat with each other?

开发者 https://www.devze.com 2022-12-29 05:41 出处:网络
I am new to XMPP. I am using Openfire server, and created a console client using Smack library. My usecase:

I am new to XMPP. I am using Openfire server, and created a console client using Smack library.

My usecase:

All users anonymous, logged in (In future, website visitors) will be able to see other anonymous, logged-in users. And they can initiate a private chat (one-to-one) with any of them.

So, I am able to logged in as Anonymous user, but I am not able to see other Anon / Logged in users (using Roster), because they are not in anon user's roster.

开发者_C百科

So, What should be configuration OR custom=component/code to to achieve this usecase?

Do I need to create server component? Any hint? OR

It can be done using proper configuration?

Cheers


You should create Multi chat room MUC, and join users after login to this room.After user joins muc room they can get paricipiants list.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号