Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Notification Ping/Pong

    Posted 06-05-2025 18:06

    Michael.Shrall | 2020-04-16 13:35:37 UTC | #1

    I am using the NotificationHandler along with the Ping/Pong approach to ensure the connection is up. Do I need to write special logic if a Ping is called and no Pong is responded within a certain amount of time to confirm that the connection is down? I always see the Pong notification following the Ping request but last night my service which had been running for weeks just stopped receiving notifications. I noticed in the logging that the Pong stopped coming in which made me think that the service was sending the Ping but not getting a Pong and as such I need to have some check to ensure the previous ping received a response.


    tim.smith | 2020-04-16 13:40:54 UTC | #2

    Michael.Shrall, post:1, topic:7557
    Do I need to write special logic if a Ping is called and no Pong is responded within a certain amount of time to confirm that the connection is down?

    Yes. The purpose of the ping/pong feature is to validate that the connection is still healthy. If you don't get a pong within a couple seconds, or you don't get a heartbeat every 30 seconds, the app should consider the connection down and take steps to recover.


    Michael.Shrall | 2020-04-16 15:50:20 UTC | #3

    Thanks Tim for the quick response!


    system | 2020-05-17 15:50:25 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 7557