docs: add backlink from WebSocket to WebSockeRoute (#34600)

This commit is contained in:
Max Schmitt 2025-02-03 19:42:38 +01:00 committed by GitHub
parent f11f4a8477
commit 96d4dc1eda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,9 @@
# class: WebSocket
* since: v1.8
The [WebSocket] class represents websocket connections in the page.
The [WebSocket] class represents WebSocket connections within a page. It provides the ability to inspect and manipulate the data being transmitted and received.
If you want to intercept or modify WebSocket frames, consider using [WebSocketRoute].
## event: WebSocket.close
* since: v1.8

View File

@ -21301,8 +21301,11 @@ export interface WebError {
}
/**
* The [WebSocket](https://playwright.dev/docs/api/class-websocket) class represents websocket connections in the
* page.
* The [WebSocket](https://playwright.dev/docs/api/class-websocket) class represents WebSocket connections within a
* page. It provides the ability to inspect and manipulate the data being transmitted and received.
*
* If you want to intercept or modify WebSocket frames, consider using
* [WebSocketRoute](https://playwright.dev/docs/api/class-websocketroute).
*/
export interface WebSocket {
/**