English 中文(简体)
模拟替代
原标题:Socky Alternative

I m in search of a RELIABLE websocket server for ROR 3.Now we re using socky. It is unreliable. We like it because it has flash fallback, so it suppose to work on older browsers...but again - it is unreliable. Do you know any good websocket server for ROR with fallback (i.e. supporting all browsers)

最佳回答

替代品:

  • socket.io (raw Websocket for NodeJS)
  • juggernaut (Complete Bayeux Protocol for NodeJS/Rails)
  • faye (Complete Bayeux Protocol for NodeJS/Rails) with a Ruby-Server

拖车:不使用垃圾作为网络自动服务器,进入诺德JS,我们每小时处理数以千计的信息,没有任何问题。

我们利用最简单的设置,使之发挥作用——而且它发挥作用;

我们的建立:

  • Rails 3.0.9
  • Redis
  • NodeJS
  • Socket.IO

我们如何建立:

Rails --PUB--> REDIS --SUB--> NodeJS --WEBSOCKET (SOCKET.IO)--> Client

Redis PubSub - 如何工作?

另一端: 尽可能避免认证

Here s our case:

我们拥有像一个具有虚拟档案系统的项目管理工具。 请允许我说,在你的团队的其他人把新文件上载时,你会再次看到一个夹子。 现在我们必须通知你,你的观点已经过时——我们发出这样的信息:

<条码>倍受限

http://www.ohchr.org。

现在,客户(聆听了<条码>夹:#{夹_id})收到这一信息,看看“我的看法过时”并显示“观点过时,请点击和gt;复发”。

好的是,我们不需要任何认证,因为:

  1. if you have no access to the project you would have to guess the folder_id to subscribe to the channel
  2. even if you manage to subscribe to the channel the only information you get is that something has changed - not more not less ;)
问题回答

暂无回答




相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签