EMA CPP - Elecktron SDK - Callback for disconnection

yajnasteju
yajnasteju Explorer

Hi,

In OmmConsumerClient , what is the callback under which disconnection from ADS can be identified.

In onStatusMsg , onUpdateMsg , onRefreshMsg , this event is not captured.

Best Answer

  • warat.boonyanit
    Answer ✓

    Hi @yajnasteju

    EMA internally handles connection events, but doesn't forward them to the client application.

    However, you can indirectly monitor connection activities through the login stream.

    UInt64 loginHandle = consumer.registerClient( ReqMsg().domainType( MMT_LOGIN ).name( "user" ), client, closure );

    Application will receive channel down status (via onStatusMsg) from login stream when there is a disconnection.

Answers