Skip to content

Commit 6095831

Browse files
[feat] link legacy websockets module to reference
Reducing length of page and document duplication
1 parent e899711 commit 6095831

File tree

1 file changed

+2
-10
lines changed
  • src/data/markdown/docs/02 javascript api/12 k6-ws

1 file changed

+2
-10
lines changed

src/data/markdown/docs/02 javascript api/12 k6-ws/80 Socket.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,8 @@ excerpt: 'Socket is a WebSocket client to interact with a WebSocket connection.'
1717

1818
### WebSocket built-in metrics
1919

20-
`k6` will automatically collect some metrics when interacting with a WebSocket service through the `k6/ws` API.
21-
22-
| Metric name | Type | Description |
23-
| ------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------- |
24-
| ws_connecting | Trend | Total duration for the WebSocket connection request. |
25-
| ws_session_duration | Trend | Duration of the WebSocket session. Time between the start of the connection and the end of the VU execution. |
26-
| ws_sessions | Counter | Total number of started WebSocket sessions. |
27-
| ws_ping | Trend | Duration between a ping request and its pong reception |
28-
| ws_msgs_sent | Counter | Total number of messages sent through [Socket.send(data)](/javascript-api/k6-ws/socket/socket-send) |
29-
| ws_msgs_received | Counter | Total number of received messages [Socket.on('message', callback)](/javascript-api/k6-ws/socket/socket-on). |
20+
`k6` automatically collects metrics when interacting with a WebSocket service through the `k6/ws` API.
21+
Review the list in the [metrics reference](/using-k6/metrics/reference#websockets).
3022

3123
Check out the [Results output article](/get-started/results-output) for more information about how to process the metric information.
3224

0 commit comments

Comments
 (0)