tencent cloud

Heartbeat Instruction
Last updated: 2024-07-19 10:13:22
Heartbeat Instruction
Last updated: 2024-07-19 10:13:22
If the cloud does not receive any drive instructions for more than 10 minutes, the connection will be automatically disconnected, and concurrency will be released. After you Create Long Connection Channel, the session can be extended by sending a heartbeat instruction.
Note:
The sending interval should be greater than 30 seconds and less than 10 minutes.

Request Parameters

Parameter name
Type
Required
Description
ReqId
String
Yes
Unique identifier for each request, a 32-character UUID.
SessionId
String
Yes
Unique identifier for the session.
Command
String
Yes
SEND_HEARTBEAT: Send a heartbeat.
Data
Yes
Data Object
Data
Name
Type
Required
Description
Text
string
Yes
Use the fixed value PING

Request Sample

{
"Header": {},
"Payload": {
"ReqId": "d7aa08da33dd4a662ad5be508c5b77cf",
"SessionId": "m123adfafvbadsafd",
"Command": "SEND_HEARTBEAT",
"Data": {
"Text": "PING",
}
}
}

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback