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.
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Netty websocket client does not read new frames fr
- Eager-loading association count with Arel (Rails 3
- Is there a way to remove IDV Tags from an AIFF fil
相关文章
- 关于SignalR的问题
- MVC 中如何连接websocket?
- websocket 每60s报WsHttpUpgradeHandler.timeoutAsync
- websocket定时报超时错误
- Right way to deploy Rails + Puma + Postgres app to
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
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.