eventmachine
Queuing in tandem with a Ruby Web socket server
I am writing an application using jruby on rails开发者_Python百科.Part of the application initiates a long running process from a web page.The long running process could last for 20 minutes in some ca[详细]
2023-04-12 07:11 分类:问答When using eventmachine with sinatra, how can I close one http connection without closing them all?
I have the following code which will query the twitter streaming开发者_StackOverflow API for a certain string. When I open two tabs with different queries, they both work. However, when I stop one of[详细]
2023-04-11 14:07 分类:问答Which version of eventmachine is able to work in windows?
I\'m having issues with using eventmachine 0.12.10 in my windows machine. Now my question is, currently, which version 开发者_如何转开发of eventmachine is able to work?I have Windows 7[详细]
2023-04-10 15:09 分类:问答How do I make this AMQP single-message subscriber stable?
As a part of a larger application, I\'ve got to setup some basic rate-limiting of outgoing requests across multiple workers. The idea behind this is rather simple: by publishing a \"token\"-message wi[详细]
2023-04-10 14:53 分类:问答stream video with eventmachine?
It seems to me that EM::FileStreamer should be usable out of the box, but I tried it with the <video> tag and with an embedded Quic开发者_JS百科ktime plugin, but neither one would actually show[详细]
2023-04-10 09:15 分类:问答How to stop a background thread in Sinatra once the connection is closed
I\'m trying to consume the twitter streaming API with Sinatra and give users real-time updates when they search for a keyword.[详细]
2023-04-09 20:40 分类:问答Ruby TCP "bot" using EventMachine - implementing a command dispatcher
I\'ve crafted a basic TCP client using EventMachine. Code: # run.rb EventMachine::run do EventMachine::connect $config_host, $config_port, Bot[详细]
2023-04-08 23:36 分类:问答How do I run Net::SSH and AMQP in the same EventMachine reactor?
Some background: Gerrit exposes an event stream through SSH. It\'s a cute trick, but I need to convert those events into AMQP messages. I\'ve tried to do this with ruby-amqp and Net::SSH but, well, it[详细]
2023-04-08 22:30 分类:问答padrino && websockets
i\'m looking for a way to open and use websockets from within a Padrino application. i know Padrino works with a single thread but i\'m looking for a way to open websockets and share variables between[详细]
2023-04-06 21:26 分类:问答What are some good ways to make an async web app on ruby these days?
I\'m looking to build a webapp with a WebSocket component, and a run of the mill rack based frontend. M开发者_运维技巧y initial plan was to use Camping for the frontend, running the server on thin, wi[详细]
2023-04-02 01:48 分类:问答