How long will it take for a ping to be sent?

RyoOowada
RyoOowada Newcomer
edited May 26 in Refinitiv Data Platform

In the "24 Ping and Pong Messages" chapter of WebsocketAPI_ProtocolSpecification.pdf, It say that if a Refinitiv server doesn't receive traffic for a certain period of time, it will send a Ping message to the application.
Regarding this "certian period of time", how many seconds does it specifically refer to?

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @RyoOowada

    Thank you for reaching out to us.

    There are two values related to a ping mechanism (ping interval and ping timeout).

    Those values are configurable on the server. If you are connecting to the Real-Time Optimized, the ping interval is 20 seconds and ping timeout is 30 seconds. The server will send a ping message to the client every 20 seconds.

    After sending a ping message, if the server didn't receive any messages from the client for 30 seconds, the server will cut the connection, as shown below.

    image.png
  • RyoOowada
    RyoOowada Newcomer

    Hi @Jirapongse .

    Thank you for your answer.

    Our understanding is that for Real-Time Optimized, pings will not be sent as long as there is traffic, regardless of the type, such as MarketPrice.
    Is this understanding correct?

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    The ping mechanism is used to make sure that the another end is still active and alive.

    The server will send a ping message after the client connects to the server.

    image.png