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

Strip root_path to make ASGIServer from socketio compatible with mounting as sub-app #2521

Merged
merged 2 commits into from
Feb 8, 2024

Conversation

rodja
Copy link
Member

@rodja rodja commented Feb 7, 2024

This pull request is a workaround for miguelgrinberg/python-engineio#345 and fixes #2468 and #2515. By deriving a custom ASGIServer from socketio we can strip the root_path from path which allows for modular and ASGI compliant usage until python-engineio (and thereby python-socketio) may provide this feature upstream sometime in the future.

@rodja rodja added the bug Something isn't working label Feb 7, 2024
@rodja rodja added this to the 1.4.15 milestone Feb 7, 2024
@falkoschindler falkoschindler merged commit dc7e805 into main Feb 8, 2024
4 of 6 checks passed
@falkoschindler falkoschindler deleted the sio-root-path branch February 8, 2024 13:45
@falkoschindler falkoschindler linked an issue Feb 8, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui.run_with with mount_path is broken Getting ASGI message error when using an URL prefix
2 participants