tencent cloud

フィードバック

Heartbeat Connection

最終更新日: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.
    お問い合わせ

    カスタマーサービスをご提供できるため、ぜひお気軽にお問い合わせくださいませ。

    テクニカルサポート

    さらにサポートが必要な場合は、サポートチケットを送信して弊社サポートチームにお問い合わせください。24時間365日のサポートをご提供します。

    電話サポート(24 時間365日対応)