-
My CppWAMP client library is currently taking care of automatically sending ABORT messages when it detects protocol errors in received messages. I'm considering allowing the users of my library to issue an ABORT via the library's API. However, I can't think of a use case where a client application would want to send an ABORT, instead of just cleanly leaving the session via GOODBYE, or abruptly disconnecting the transport. Are there any use cases where a client application would want to send an ABORT for things that are not protocol errors or authentication failures? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
By the way, my library The only case when it might be useful (and the only one I had in mind while making that api) is something like this: The client starts connecting to the WAMP Router... But it takes some time (due to slow internet or some other reasons). If the client decides not to wait for session establishment — then it can call Yeah, I know not a very good example but as it is. Calling |
Beta Was this translation helpful? Give feedback.
-
@oberstet Why did you decide to have an |
Beta Was this translation helpful? Give feedback.
This could be generalized to other operations where an acknowledgment (e.g. SUBSCRIBED) takes too long to arrive. Since CANCEL is limited to CALLs only, ABORT is the only available message left for the client to report a timeout for a non-call operation.
I would go further by sending an ABORT so that a reason URI can be logged by the router, followed by an immediate d…