What happen when `OmmConsumer.registerClient` has called twice?

Hi All.

I'd like to know what happen internally when OmmConsumer.registerClient twice.

We're calling `registerClient` to re-establish the connection during night.

Is this action allowable? I'd like to know possible issue by doing it.

Regards

Jin

Best Answer

  • umer.nalla
    Answer ✓

    Hi @cho.seungjin

    registerClient is required when you need to resubscribe an item - so if an item stream is closed then you would resubscribe the item. If an item stream is still open then you should not need to call registerclient again for the item.

    Normally, if a connection is lost, the API should recover the connection on your behalf when possible and also recover the items for you too.

    If your application is working fine during the day but losing connection during the night, then you need to speak to your Market Data team to understand what is happening to your servers during the night. If you are using a hosted or cloud based feed then contact your Refinitiv account manager and/or raise a support ticket with the Elektron Realtime / Cloud team to investigate why the connection is being lost overnight.