-
Notifications
You must be signed in to change notification settings - Fork 236
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
Async Callback (for usage with accept_hdr_async
)
#159
Comments
Not supported yet (currently it calls a function from |
Ok, thank you for the response. Are features like this part of the short/mid-term roadmap for this project? |
Currently not planned, but if someone submits a PR, we would be glad to review and merge it. |
fyi, this was also brought up here sdroege/async-tungstenite#70 i'm having trouble with an alternative since i need data from the request to do the desired io |
accept_hdr_async
)accept_hdr_async
)
could it at least for now be possible that the callback is called inside |
The thing is that the callback logic is implemented inside What we should do instead is to make In your particular case, won't a regular |
WebSocketConfig extended to allow accepting unmasked client frames
Is there progress on supporting asynchronous callbacks in methods like
accept_hdr_async
? It is a common pattern to make asynchronous requests to external authentication providers from within this callback to determine if a connection should be accepted or rejected.The text was updated successfully, but these errors were encountered: