如何在两个用户之间创建私人频道 [英] How do I create Private channel between two user

查看:103
本文介绍了如何在两个用户之间创建私人频道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在为聊天应用程序实现 Faye 服务器.目前我们的表中有 400000 个用户.每个用户都可以私下互相聊天.但是我不知道如何使用 Fayeprivate pub 为 40 万用户实现两个用户之间的私人频道.我是否必须制作一个包含 40 万 X 40 万 私人频道条目的表格,我认为这不是一个好主意.请指导我.

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.

推荐答案

Faye 文档提供了有关此主题的一些非常好的信息:http://faye.jcoglan.com/security.html

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.

这篇关于如何在两个用户之间创建私人频道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆