- What is the appropriate way to determine if the session is connected or disconnected from OmmConsumerEvent?
void EmaSession::onStatusMsg(const StatusMsg &statusMsg, const OmmConsumerEvent &event)
- Also, what is the appropriate way to unsubscribe an active subscription?
How can we unregister with the handle return in register?
// register
UInt64 handle = mConsumer->registerClient(emaReq, *this);
// handle =140239205235712
onUpdateMsg {
mConsumer->unregister(event.getParentHandle()); //140239205235712
// Caught OmmException: Invalid attempt to close batch stream. Instance name='consumer1_2'.
mConsumer->unregister(event.getHandle()); // 1402434320535765
// Work fine
}