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

Receipt error handling #70

Open
adhesivee opened this issue Jun 15, 2020 · 1 comment
Open

Receipt error handling #70

adhesivee opened this issue Jun 15, 2020 · 1 comment

Comments

@adhesivee
Copy link

Describe the feature

It is possible to handle receipts this way:

 stompConnection.send(
                "topic",
                Buffer.buffer(message.payload)
        ) { frame ->
            // only on success
        }

For my use case I want that ERROR is handled directly. But the only way how I see it working is to add a frame handler to intercept the RECEIPT that is generated, create errorHandler and track the receipt id.

Use cases

In order to give fast feedback to the user it would be nice if this could be handled by the library.

Contribution

I can contribute to this, but first it should be clear what is the best approach.

@adhesivee
Copy link
Author

adhesivee commented Jun 16, 2020

An approach could be to add receiptHandler on StompClientConnection.
When no value is passed it will use the current implementation.
This way it is possible to create own implementation around this, without having errors thrown by the receiptHandler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant