We use Refinitv Elektron SDK API (ema.jar, upa.jar, upaValueAdd.jar version 18.104.22.168) to connect to Refinitiv to get market data.
We are interested in capturing the connection related events on our side when client component (using EMA client libraries) connects to Refinitiv and subscribes to some chain/ric via the EMA client library. We want to know the API which can be used to capture the following types of events:
1) Successful connection events: Event when EMA client library establishes an successful connection with the Refinitiv servers.
2) Disconnect events: Event when EMA client library disconnects from the Refinitiv servers. It can be due to network issues, refinitiv servers goes down etc...
3) Heartbeat events: Events which are periodically published by the EMA client library to show connection status.
Initial connection is established in following way:
OmmConsumerConfig config = EmaFactory.createOmmConsumerConfig();
OmmConsumer consumer = EmaFactory.createOmmConsumer(config.host(server).username(userName).applicationId(applicationId));
Refer to this thread, EMA internally handles connection events (Successful, Disconnect, Heartbeat) but it doesn't forward them to the EMA client application.
However, you can retrieve connection and disconnection via the login stream. Please refer to the ex333_Login_Streaming_DomainRep example in the EMA Java package about registering a login stream.