-
Notifications
You must be signed in to change notification settings - Fork 104
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
access to ABORT messages #71
Comments
If I'm not misreading the spec, ABORT would be sent to a client before (instead of) WELCOME messages, meaning the session won't be established. The The caller can then catch that exception in particular if they're interested in the ABORT reason. They should already be guarding against exceptions in general because of bad connectivity, session already joined errors, etc. |
On that note, I think the |
I agree it is more correct to use the m_session_join promise. I will make a change request implementing your suggestion...... soon... |
Eventually I found the time. I had problems though, transfer the "Details|dict" to the exception. Missing knowledge about what exactly it can contain! If anyone have a strategy of how to transfer the "Details|dict" to the exception in a readable way, please speak out, and I will fix it.... ( or just fix it if easier ... :-) ) |
sorry for the mess, It looks like I closed - no I actually did close it, but it was actually not what I wanted!!! |
re: adding "Details|dict" to the exception Then you can offer access to the exception handler via e.g. |
It should be possible for user-code to know when an ABORT messages has arrived.
Now - it ends in a FIXME statement.
For example:
an instance of the wamp_abort is filled in the new process_abort function,
and the virtual on_abort function is called with that instance as argument.
or how to make it better????
The text was updated successfully, but these errors were encountered: