Refinitiv Data Platform Library for TypeScript

onComplete

Attaches the Complete event handler function to the stream.

Syntax

streamingChain.onComplete(callBack: Pricing.Chain.OnCompleteCallback)

Parameters

Value Description Data type Optional Default value
callback Pricing.Chain.OnCompleteCallback function (see Pricing.Chain.Event) function No -

Returned value

Pricing.Chain.Stream object

Usage

The following example demonstrates how to display the messages received when the streaming is complete.

const streamingChain = await Pricing.Chain.Definition('.AV.HSI').getStream(session);

await streamingChain
    .onComplete(constituents => console.log(constituents))
    .open();

None.