Closed romainneutron closed 11 years ago
My bad, I just realized the spec have changed between 1.1 and 1.2, I implemented for 1.2 :(
see http://stomp.github.com//stomp-specification-1.1.html#ACK see http://stomp.github.com//stomp-specification-1.2.html#ACK
1.1 requires 'message-id' header. I'm gonna revert this
PR updated, now 1.1 compatible (as of this client version requirement)
Those comments were intentional by the way, they are the API documentation :D
I discussed this with @jsor and using DeferredResolver is maybe not the best approach. It is an internal promise API, so perhaps we should make our own instead.
Here's a prototype of how it could work: https://gist.github.com/4081306
Using promises still makes sense for consuming acks though. So we should still use them for that.
see http://stomp.github.com//stomp-specification-1.1.html#ACK see http://stomp.github.com//stomp-specification-1.1.html#NACK