-
-
Notifications
You must be signed in to change notification settings - Fork 890
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
Get websocket data in exception handler #100
Comments
This is a good idea, I like it. You need to keep in mind that there are a handful of events, and they all have different arguments. You have The easiest way to achieve what you want is to add all the data to
The message name can be Would something like this work for you? |
Sounds good, I'm going to work on this. |
The upcoming version 1.0 will support this. You can use |
Closing, since release 1.0 has been released. |
I want to access the websocket data for exception logging, similarly to this example:
From what I have seen so far, there is no simple way to get the
data
that was passed to themessage_handler
function inside theerror_handler
, unless overriding thesocketio.on
decorator. I want to submit a pull request that will achieve this, but I want to know first if there is a way to do this without changing thesocketio.on
method. Is there, for instance, arequest
attribute that contains the current websocket message and data?The text was updated successfully, but these errors were encountered: