Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/stomp.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ class Client
# on the browser side (e.g. [RabbitMQ's temporary
# queues](http://www.rabbitmq.com/stomp.html)).
subscription = frame.headers.subscription
destination = frame.headers.destination
onreceive = @subscriptions[subscription] or @onreceive
if onreceive
client = this
Expand All @@ -265,7 +266,7 @@ class Client
frame.ack = (headers = {}) =>
client .ack messageID , subscription, headers
frame.nack = (headers = {}) =>
client .nack messageID, subscription, headers
client .nack messageID, destination, headers
onreceive frame
else
@debug? "Unhandled received MESSAGE: #{frame}"
Expand Down