tencent cloud

Cloud Application Rendering

Release Notes
Product Introduction
Overview
Basic Concepts
Strengths
Use Cases
Purchase Guide
Billing Overview
Billing
Purchase Process
Overdue Payment
Refunds
Auto-Renewal Rules
Getting Started
Basic Technical Concepts
User Guides
Technical Integration
Integration Demo
Console Guide
Application Management
Project Management
Stream Push Service
Concurrency Management
Multiplayer Interaction
Session Status
Practical Tutorial
How to Implement Cloud-Native Recording
How to Implement Application Upload and Version Update via CAR-CLI
How to Implement Concurrency Sharing
How to Implement Mobile Chinese Input
How ‍to ‍Push ‍‍Cloud ‍Video Streams to CSS
How to Implement Multi-Person Interaction
How to Implement Live Room Interaction ‍with On-Screen Comments
Configuring and Using Cloud Browser
SDK Documentation
JavaScript SDK
SDK for Android
SDK for iOS
API Documentation
History
Introduction
API Category
Making API Requests
User APIs
Application Management APIs
Project Management APIs
Concurrency Management APIs
Stream Push Service APIs
Data Types
Error Codes
FAQs
CAR Basics
CAR Integration
Cloud Application
Service Level Agreement
CAR Policy
Privacy Policy
Data Processing And Security Agreement
Contact Us

Heartbeat Connection

PDF
フォーカスモード
フォントサイズ
最終更新日: 2024-01-26 11:54:09

Heartbeat Connection

This section describes how to maintain a heartbeat connection between the client and the backend. The heartbeat can be used to detect whether the user is still connected and used to collect and manage data such as user connection duration. In this way, if the user exits due to an error, the backend can more quickly repossess the concurrency the user was occupying, and make it available to other users.

Sequence diagram





Directions

1. The client regularly sends heartbeat messages to the backend. The backend maintains the user connectivity based on the heartbeat messages.
2. The backend regularly checks whether the user is still connected. If the user heartbeat times out, the backend will call the DestroySession() API to terminate the session and close the application, and the client will disconnect from the application.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック