From: "Andrew Kuklewicz" <kooks...@gmail.com>
Date: Sat, 10 May 2008 15:34:36 -0400
Local: Sat, May 10 2008 3:34 pm
Subject: Re: Stomp Ruby gem on GitHub
I just got your two messages about this git repo for a fork of the stomp gem I'm a bit confused why it was necessary to fork the project, and I hope it Is there a reason you didn't want to submit patches to the existing gem There are a number of changes to the stomp gem I have been working on lately That said, if there is good stuff that comes out of your efforts, I would be I have a few other specific responses in context below: On Sat, May 10, 2008 at 1:12 PM, Glenn Rempe <glenn.re...@gmail.com> wrote: The current gem doesn't use or depend on rspec; I respect that this is how > Please accompany all code changes with matching Rspec specs, which you like to work, but I would think it would be more appropriate to offer test unit classes, as that is what the gem uses now, and otherwise you end up with a mix of units and specs, and that's awkward. > TODO : One thing I would personally like to see is an easy way to make The way the gem works now is that when you make a request, it blocks until > a synchronous request to the STOMP server which is non-blocking. that request has been sent to the broker. Is what you want to be able to do the send, but then immediately move on, regardless of if the request has to be retried, or can even be sent right away? If so, it sounds like all you want is to use a different thread to do the send, such as putting the send in the block for a Thread.new. Or, is what you mean a way to get a _response_ to a request where listening > The Poll works as I use it in a13g, perhaps it depends what you are trying to do > poll method seems broken to me, and receive appears to connect and > block until messages arrive. with it, or how you expect it to work? What are you expecting? Stomp as a protocol is designed so that you subscribe to destinations, and Receive loops checking to see if there is new incoming IO on the tcp port, Poll is just a synchronizing wrapper to make sure you don't have more than I guess I just don't understand how you expect this all to work where some > Someone want to take that one on or show The Client class in the stomp gem starts up a listen thread to receive > me the error of my ways? :-) messages on initialize, so it is not blocking the main execute thread. In your main code you then register listener blocks when you subscribe that will get called back asynchronously when your a message is received. All you need to do is instantiate the Client, and use that to If you don't want it to block, but you do want to listen for and then handle Anyway, let me know if I have misunderstood, and I look forward to your - Andrew Kuklewicz Happy coding! > Glenn Andrew Kuklewicz You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||