Replies

BernhardCS
09 Nov 2023, 08:32 ( Updated at: 09 Nov 2023, 10:44 )

Hello,

the search function is a bit difficult in this forum :-) sorting by last activity instead of search by “heartbeat” I found that thread: https://ctrader.com/forum/connect-api-support/38894 about the same issue, which states: 

  • I need to send heartbeats each 10 seconds, otherwise connection will be closed after some seconds, but I will not get any notification whether my sent heartbeat has been accepted, or there was maybe any difficulty
  • just need to listen to the OnProtoHeartbeatEvent and whether there arrives a call each 30 seconds as notification that connection is still open - which has nothing to do with my sent heartbeat itself

Is that the correct solution and made I correct by my code above?

Thank you.

Bernhard


@BernhardCS