Skip to content

Commit

Permalink
docs: add backlink from WebSocket to WebSockeRoute (#34600)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Feb 3, 2025
1 parent f11f4a8 commit 96d4dc1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/src/api/class-websocket.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 5 additions & 2 deletions packages/playwright-core/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down

0 comments on commit 96d4dc1

Please sign in to comment.