提交工单
咨询集成、功能及报价等问题
When you need to understand the relevant information of a room closure, you can obtain it through this callback.
Public parameter | Type | Description |
---|---|---|
event |
String |
The callback event, and the returned value of this callback is room_close . |
appid |
Int |
The unique identifier of the APP. |
timestamp |
Int |
The current server time in Unix timestamp format, in seconds. |
nonce |
String |
A random string. |
signature |
String |
The verification string, see Authenticating server-to-server callbacks for details. |
Business parameter | Type | Description |
room_id |
String |
The room ID. |
room_session_id |
Int |
The unique identifier of the room's life cycle, which remains unchanged throughout the entire life cycle of the room.
This parameter is consistent with the parameter "room_seq" in the Login Room Callback and Logout Room Callback. |
close_reason |
Integer |
The reason why the room is closed.
|
room_close_time |
String |
The time when the room was closed, in milliseconds. |
{
"event": "room_close",
"appid": 1,
"timestamp": 1499676989,
"nonce": "350176",
"signature": "signature",
"room_id": "rid_1242649",
"room_session_id": 858012925204410400,
"close_reason": 1,
"room_close_time": "1499676989909"
}
Array
(
[event] => room_close
[appid] => 1
[timestamp] => 1499676989
[nonce] => 350176
[signature] => signature
[room_id] => rid_1242649
[room_session_id] => 858012925204410400
[close_reason] => 1
[room_close_time] => 1499676989909
)
Returning an HTTP status code of 2XX (e.g., 200) indicates success, and other responses indicate failure.
If the ZEGOCLOUD server does not receive a response, or the HTTP status code received by the ZEGOCLOUD server is not 2xx (such as 200), it will retry with intervals of 2s, 4s, 8s, 16s, and 32s respectively. If the retry still fails after an interval of 32s, it will no longer retry.