Updated on 2024-10-11 GMT+08:00

WSRequest

This system keyword is applicable to the scenario where a WebSocket client requests a server operation.

Parameter

Mandatory

Type

Description

Request Uri

Yes

String

WebSocket service address

Response Timeout

Yes

Long

Response timeout period

Header

Yes

String

Request header

Request Type

Yes

String

Request data type

Request Body

Yes

String

Request data

Response Type

Yes

String

Response data type

WSRequest Response

Status: success

Parameter

Type

Description

Body

String

Value returned by the WSRequest API

WSRequest Response Example

{ 
    "Write data to *** at port *** successfully! response: this is a response message." 
 }

Default Checkpoint

Name

Expected Value

Result

Success

WSRequest Usage Example

Configure parameters to access the WebSocker service.