使用剑圣作为Rails插件时遇到麻烦 [英] trouble using juggernaut as a rails plugin

查看:94
本文介绍了使用剑圣作为Rails插件时遇到麻烦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Rails插件,在其中我需要一个模型,在该模型中服务器将通知所有连接的客户端更新.为简单起见,在某些事件服务器上,所有客户端都会说有更新".

i am developing a rails plugin, in which i want a model where server will notify updates to all the connected clients. for simplicity say, on certain event server will say 'hi there is an update' to all the clients.

我遇到了使用网络套接字的剑圣插件,并遵循了 https://github.com/maccman/juggernaut_plugin/tree/c3e07a812341f93bb1f90c00b7a125524b07b80a

i came across juggernaut plugin that uses web-sockets and have followed https://github.com/maccman/juggernaut_plugin/tree/c3e07a812341f93bb1f90c00b7a125524b07b80a

但是它对我不起作用.

but its not working for me.

任何人都可以帮助我弄清楚我所缺少的是什么,只是向客户发送警报.

can any one help me figuring out what am i missing, simply to send an alerts to the clients.

还是有一些更简单的库或更简单的方法来使用它?

or is there some simpler library or simpler way to get on with it?

任何建议/评论将不胜感激.

any suggestions/comments will be appreciated.

推荐答案

Faye呢?这是Railscasts 截屏

What about Faye? Here's a Railscasts screencast

这篇关于使用剑圣作为Rails插件时遇到麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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