Skip to content

Commit

Permalink
accept headers from disconnect
Browse files Browse the repository at this point in the history
add a 2nd optional parameter to the disconnect method to pass additional
headers (eg receipt)

fixes jmesnil#57
  • Loading branch information
jmesnil committed Mar 26, 2014
1 parent d42f7e8 commit 7677287
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions lib/stomp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/stomp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/stomp.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ class Client
@_transmit "CONNECT", headers

# [DISCONNECT Frame](http://stomp.github.com/stomp-specification-1.1.html#DISCONNECT)
disconnect: (disconnectCallback) ->
@_transmit "DISCONNECT"
disconnect: (disconnectCallback, headers={}) ->
@_transmit "DISCONNECT", headers
# Discard the onclose callback to avoid calling the errorCallback when
# the client is properly disconnected.
@ws.onclose = null
Expand Down

0 comments on commit 7677287

Please sign in to comment.