Updated on 2024-04-25 GMT+08:00

Protocol: WSConnect

This system keyword is used for connecting a WebSocket client to a server.

Parameter

Mandatory

Type

Description

Request Uri

Yes

String

WebSocket service address

Response Timeout

Yes

Long

Response timeout period

Header

Yes

String

Request header

Connect Timeout

Yes

Integer

Connection timeout period

WSConnect Response

Status: success

Parameter

Type

Description

Body

String

Value returned by the WSConnect API

WSConnect Response Example

{ 
    "Connect to *** at port *** in time 5000 successfully!" 
}

Default Checkpoint

Name

Expected Value

Result

Success

WSConnect Usage Example

Configure parameters to access the WebSocker service.