Skip to content

Create WEBSOCKET Testing Task


WebSocket testing allows clients to initiate HTTP requests to servers, establish WebSocket connections, and validate requests and conditions (such as request headers, response times, etc.).

Start Creating

Click Create > API Tests, and select WEBSOCKET Protocol.

1. Define Request Format

  1. URL: Supports entering URLs with WS and WSS protocols.
  2. Advanced Settings: Supports custom request settings and authentication.
  3. Content: Enter the message content to be sent to the server.
  4. Name: Customize the name of the WebSocket testing task, which must be unique within the current workspace.

2. Availability Check

Add conditions to match data. Multiple conditions can be combined using "All" or "Any" to achieve AND or OR logical relationships.

After defining the request format and adding conditions, click the "Test" button on the right side of the URL to verify if the testing connection configuration is successful.

Note: The test result is independent of the selected node.

3. Select Testing Nodes

Currently, TrueWatch covers 14 testing nodes globally. You can select one or more nodes in China or overseas (only available for Commercial Plan and above users) to quickly start monitoring site service quality.

4. Select Testing Frequency

Select the execution frequency of the testing task, with the following options:

  • 1 minute (only available for Commercial Plan and above users)
  • 5 minutes (only available for Commercial Plan and above users)
  • 15 minutes (only available for Commercial Plan and above users)
  • 30 minutes
  • 1 hour
  • 6 hours
  • 12 hours
  • 24 hours

In addition to the specific options provided by the system, you can also enter a custom crontab task to configure scheduled task execution based on minutes, hours, days, months, weeks, etc.