question

Upvotes
Accepted
15 3 4 6

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

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 12 25

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.