Rails 3:实时服务器推送? [英] Rails 3: Real-time server push?

查看:39
本文介绍了Rails 3:实时服务器推送?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写一个 Rails 3 应用程序,其中服务器可以将数据实时推送到多个客户端.

I'm trying to write a Rails 3 application in which a server can push data to multiple clients in real time.

我听说过 Juggernaut,但我也听说它不适用于 Rails 3.我尝试过 APE(AJAX 推送引擎),但我不太走运.

I've heard of Juggernaut, but I've also heard that it does not work with Rails 3. I tried APE (AJAX Push Engine), but I'm not having much luck with it.

我对 Rails 很陌生.我找不到很多涉及实时推送和 Rails 3 的指南.我一直在寻找一个免费、简单(如果可能)的解决方案.如果有人能指出我正确的方向,我将不胜感激.

I'm very new to Rails. I can't find many guides that involve real-time push, and Rails 3. I was looking for a free, easy (if possible) solution to this. If anyone could point me in the right direction, I'd greatly appreciate it.

推荐答案

查看 Faye:http://faye.jcoglan.com/ - 我听到了关于它的好消息.

Check out Faye: http://faye.jcoglan.com/ - I hear really good things about it.

如果您正在寻找托管解决方案,我过去曾使用过 Pusher http://pusher.com/,并且爱它.我在大约 30 分钟内将一个使用 ajax 轮询的站点转换为推送器.

if you're looking for a hosted solution, i've used Pusher http://pusher.com/ in the past, and loved it. i converted a site that used ajax polling over to pusher in about 30 minutes.

这篇关于Rails 3:实时服务器推送?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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