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

Commit e7af174

Browse files
committed
The matching subscribed queue will be found in the subscription headers in the case of a reply-to temp queue with rabbitmq
1 parent 98f04fb commit e7af174

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/stomp.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ Stomp.prototype.is_a_message = function(this_frame) {
294294
// Takes a `Frame` object
295295
//
296296
Stomp.prototype.should_run_message_callback = function(this_frame) {
297-
var subscription = this._subscribed_to[this_frame.headers.destination];
297+
// The matching subscribed queue will be found in the subscription headers in the case of a reply-to temp queue with rabbitmq
298+
var subscription = this._subscribed_to[this_frame.headers.destination] || this._subscribed_to[this_frame.headers.subscription];
298299
if (this_frame.headers.destination !== null && subscription !== null) {
299300
if (subscription.enabled && subscription.callback !== null && typeof(subscription.callback) == 'function') {
300301
subscription.callback(this_frame.body, this_frame.headers);

0 commit comments

Comments
 (0)