Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nack method on frame object #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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