How do I create Private channel between two user

人走茶凉 提交于 2019-12-08 02:27:11

问题


I have been implementing Faye server for chat application. Currently we have 400000 users in our table. Each user can chat with one another privately. But I don’t know how to implement private channel between two users using Faye or private pub for 4 lakhs user. Do I have to make a table which will contain around 4 lakhs X 4 lakhs private channel entry, I think that is not a good idea. please guide me.


回答1:


The Faye documentation provides some very good information on this subject: http://faye.jcoglan.com/security.html

In your case the How should I authenticate clients? is particularly relevant.

The users who are to participate in the private one-to-one chat subscribe to a channel and your application controls who can subscribe to that channel using the authentication techniques mentioned - it only allows the two expected users to participate.



来源:https://stackoverflow.com/questions/15403241/how-do-i-create-private-channel-between-two-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!