question

Upvotes
Accepted
36 9 10 23

EMA CPP - Elecktron SDK - Callback for disconnection

Hi,

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

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

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apiADS
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
4.4k 10 6 9

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I have logged each message under status message , but Disconnection to ADS is not logged , but , few messages such as - 'Service to the item was lost ' are logged for individual ric codes.

@yajnasteju

Have you registered for login stream yet?

If you do, then there should be channel down events when there is a disconnection.

StatusMsg
    streamId="1"
    domain="Login Domain"
    ClearCache
    state="Open / Suspect / None / 'channel down'"
    name="u0160375"
    nameType="1"
StatusMsgEnd


StatusMsg
    streamId="1"
    domain="Login Domain"
    state="Open / Suspect / None / 'Channel is down.'"
StatusMsgEnd

Note that the status is on "Login Domain". They will show up only when you register for login domain events.