简体   繁体   English

使用剑圣作为Rails插件时遇到麻烦

[英]trouble using juggernaut as a rails plugin

i am developing a rails plugin, in which i want a model where server will notify updates to all the connected clients. 我正在开发一个Rails插件,在其中我需要一个模型,其中服务器将通知所有连接的客户端更新。 for simplicity say, on certain event server will say 'hi there is an update' to all the clients. 为了简单起见,在某些事件服务器上,所有客户端都会说“嗨,有更新”。

i came across juggernaut plugin that uses web-sockets and have followed https://github.com/maccman/juggernaut_plugin/tree/c3e07a812341f93bb1f90c00b7a125524b07b80a 我遇到了使用网络套接字的剑圣插件,并遵循了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. 任何建议/意见将不胜感激。

juggernaut_plugin hasn't been updated for three years. juggernaut_plugin三年未更新。 You want Juggernaut , the much more recently and recently-updated version. 您需要Juggernaut ,这是最近更新的版本。 Try following the instructions for that. 尝试按照说明进行操作。

What about Faye? 菲呢? Here's a Railscasts screencast 这是Railscasts的截屏视频

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM