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

Allow inspection of created WebSockets #841

Open
whimboo opened this issue Jan 3, 2025 · 0 comments
Open

Allow inspection of created WebSockets #841

whimboo opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement New feature or request module-browsingContext Browsing Context module

Comments

@whimboo
Copy link
Contributor

whimboo commented Jan 3, 2025

Playwright supports the inspection of WebSockets. Clients can subscribe via page.on("websocket") to get an event when a new WebSocket is created. As payload the WebSocket instance is passed, which can then be used to attach additional event handlers manually.

@whimboo whimboo added enhancement New feature or request module-browsingContext Browsing Context module labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module-browsingContext Browsing Context module
Projects
None yet
Development

No branches or pull requests

1 participant