-
Notifications
You must be signed in to change notification settings - Fork 6
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
ERROR or RECEIPT #20
Comments
I have a fix ready for this one, but there is an interesting point that deserves attention:
currently there is no way to implement the bold part inside the protocol, since the call to the command handler (see |
I've already looked at the source code and in my case it's enough throw an It seems to me that the server must respond
|
I think the project needs to move toward point two, for a simple reason: the goal is not to build a broker (as stated in the README), so the library should not handle specific behaviour that may be left to the user. But now another question arises: should we do the same thing for transactions? at the moment, the library keeps an object in memory containing all pending transactions for each session (see here) and we have the same synchronization issue similar to the RECEIPT. |
I think if we stick to the second point, then the library should not have the storage of transactions and subscriptions |
I'm reviewing the code right now, and I think that we could achieve both a simpler protocol handler and a high-level broker-like protocol handler, if the library keeps these two concerns wisely separated. I think I'm going to remove all broker-specific checks from |
Description
When I send an error on the server for any frame with a receipt header set, I get both the
RECEIPT
and theERROR
messages on the client.From specification:
and
As I understand it, in this case
ERROR
acts as a confirmation andRECEIPT
should not be sent.Versions
node-stomp-protocol: 0.3.8
The text was updated successfully, but these errors were encountered: