-
Notifications
You must be signed in to change notification settings - Fork 933
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
[Bug]: page.route_web_socket doesn't intercept the ws connection #2686
Comments
Thank you for the great bug report! Looks like this is about the URL matching - I created a PR with a fix in #2687. As a workaround could you try this?
|
I've installed the version from github. It works with a string URL.
doesn't intercept the connection URL
|
|
It does work. Thanks. |
Version
1.49.1
Steps to reproduce
The test code uses a custom chromium path. TEST_BROWSER_PATH.
pip install uv
uv sync && npm i
python -m http.server 8000
uv run server.py
uv run test_websocket.py
npx ts-node test_websocket.ts
Expected behavior
The python and ts versions should behave the same.
The python version prints a message when the WebSocket route is established and sends a fake message to the client. (The ts version does it as expected)
Actual behavior
No logs and no messages in the python version.
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: