juggernaut

Persistent “Cannot find module” errors when installing juggernaut in OS X and Rails 3

妖精的绣舞 提交于 2019-12-11 18:17:25
问题 I started with a blank install of Lion, installed Xcode 4.1, then followed the instructions at http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac to install rvm, sqlite3, rails and then installed node v0.2.5 and redis v2.0.4. I then tried to install juggernaut: git clone git://github.com/maccman/juggernaut.git --recursive cd juggernaut sudo node server.js After sudo node server.js I get the following error. I have somehow managed to get the same error on 2 separate computers,

Faye vs. Socket.IO (and Juggernaut)

感情迁移 提交于 2019-11-29 18:35:58
Socket.IO seems to be the most popular and active WebSocket emulation library. Juggernaut uses it to create a complete pub/sub system. Faye is also popular and active, and has its own javascript library, making its complete functionality comparable to Juggernaut. Juggernaut uses node for its server, and Faye can use either node or rack. Juggernaut uses Redis for persistence ( correction: it uses Redis for pub/sub), and Faye only keeps state in memory. Is everything above accurate? Faye says it implements Bayeux -- i think Juggernaut does not do this -- is that because Juggernaut is lower level

Faye vs. Socket.IO (and Juggernaut)

北城余情 提交于 2019-11-28 13:14:31
问题 Socket.IO seems to be the most popular and active WebSocket emulation library. Juggernaut uses it to create a complete pub/sub system. Faye is also popular and active, and has its own javascript library, making its complete functionality comparable to Juggernaut. Juggernaut uses node for its server, and Faye can use either node or rack. Juggernaut uses Redis for persistence ( correction: it uses Redis for pub/sub), and Faye only keeps state in memory. Is everything above accurate? Faye says

How to communicate with threads in Ruby?

微笑、不失礼 提交于 2019-11-28 12:36:15
I'm building a real time game, mostly chat based, and I need to have many of these chats running concurrently, receiving and sending data through web sockets. I have been told that instead of spawning one process per game, I should have one process with one thread per game (maybe using Event Machine). I'm using Juggernaut for the sockets part, it lets me send data to all the players in a game by using a publish/subscribe system: each player subscribes to one game. But how do I send data from each player to that particular game? I was thinking that I could send the game ID or channel ID from

How to implement server push in Flask framework?

南楼画角 提交于 2019-11-26 16:52:40
I am trying to build a small site with the server push functionality on Flask micro-web framework, but I did not know if there is a framework to work with directly. I used Juggernaut , but it seems to be not working with redis-py in current version, and Juggernaut has been deprecated recently. Does anyone has a suggestion with my case? Peter Hoffmann Have a look at Server-Sent Events . Server-Sent Events is a browser API that lets you keep open a socket to your server, subscribing to a stream of updates. For more Information read Alex MacCaw (Author of Juggernaut) post on why he kills

How to implement server push in Flask framework?

瘦欲@ 提交于 2019-11-26 05:59:13
问题 I am trying to build a small site with the server push functionality on Flask micro-web framework, but I did not know if there is a framework to work with directly. I used Juggernaut, but it seems to be not working with redis-py in current version, and Juggernaut has been deprecated recently. Does anyone has a suggestion with my case? 回答1: Have a look at Server-Sent Events. Server-Sent Events is a browser API that lets you keep open a socket to your server, subscribing to a stream of updates.