You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/protocols/websocket.md
+43-66Lines changed: 43 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,27 @@
1
-
# WebSocket Sampler Documentation
1
+
###WebSocket Sampler Documentation
2
2
3
-
## Overview
3
+
The `DslWebsocketSampler` class provides a Java DSL for creating WebSocket performance tests using JMeter. It supports the full WebSocket lifecycle including connection, data transmission, and disconnection operations. It is based on [WebSocket Samplers by Peter Doornbosch](https://bitbucket.org/pjtr/jmeter-websocket-samplers/src/master/) plugin.
4
4
5
-
The `DslWebsocketSampler` class provides a Java DSL for creating WebSocket performance tests using JMeter. It supports the full WebSocket lifecycle including connection, data transmission, and disconnection operations.
5
+
To use it, add the following dependency to your project:
6
6
7
-
## Features
8
-
9
-
-**Connection Management**: Establish and close WebSocket connections
10
-
-**Data Transmission**: Send and receive WebSocket messages
11
-
-**URL Parsing**: Automatic parsing of WebSocket URLs (ws:// and wss://)
12
-
-**Timeout Configuration**: Configurable connection and response timeouts
13
-
-**TLS Support**: Secure WebSocket connections with WSS protocol
14
-
-**Fluent API**: Method chaining for easy configuration
15
-
16
-
## Main Components
17
-
18
-
### 1. DslWebsocketSampler (Main Class)
19
-
20
-
The main class that provides static factory methods for creating different types of WebSocket samplers.
21
-
22
-
#### Static Methods
23
-
24
-
-`webSocketSampler()` - Creates a basic WebSocket sampler
25
-
-`connect()` - Creates a WebSocket connection sampler
26
-
-`connect(String url)` - Creates a WebSocket connection sampler with URL parsing
27
-
-`disconnect()` - Creates a WebSocket disconnection sampler
0 commit comments