We use Refinitv Elektron SDK API (ema.jar, upa.jar, upaValueAdd.jar version 3.5.0.0) 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));