docs: add backlink from WebSocket to WebSockeRoute

This commit is contained in:
Max Schmitt 2025-02-03 18:21:48 +01:00
parent 5996a0df0a
commit 3385ebf240
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 {
/**