pascalopitz/nodestalker

multiple put events, same client?

funston opened this issue · 2 comments

Should this be possible? Is hanging for me (pseudo code-->)

var client = new ns.Client();

client.use("foo").onSuccess(function(){
events.forEach(function(event){
client.put(event).onSuccess(function(){});
});

ie, put multiple events via the same client connection?

hello ... I would assume that a socket processes the messages sequentially.
So you'd have to send the next message after you've received a response, in the callback.

makes sense. seemed to work on centos, which is odd. but not macos ..