Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Producer Send return callback #49

Open
mseld opened this issue Nov 21, 2017 · 0 comments
Open

Producer Send return callback #49

mseld opened this issue Nov 21, 2017 · 0 comments

Comments

@mseld
Copy link

mseld commented Nov 21, 2017

Is there way to grantee that message send by returning callback

var client = new stomp.Stomp(stomp_args);
client.send(headers, true);

something like that

// callback
client.send(headers, true, function(err,reply) {
    if (err) {
        logger.error('[AMQ-producer] error : ' + err.message);
        logger.debug('[AMQ-producer] error stack : ' + err.stack);
    } else {
        logger.info(reply);
    }
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant