EMA re-subscribe RIC data

Hi Team,

client is using EMA C++ version to subscribe real time data. they want to know how to re-subscribe data without restart their application. Please advise, thanks

consumer.registerClient(ReqMsg().serviceName(serviceName.c_str()).name(ric.c_str()), client);

Tagged:

Answers

  • Hello @gang.chen1

    The code to subscribe/re-subscribe any instrument is exactly the same. Once subscribed, the subscription will stay open forever - until user unsubscribes that instrument or the infrastructure closes the stream due to an error condition.

    Is the application closing/un-subscribing the instrument?