Refinitiv Data Platform Library for TypeScript

onRemove

Attaches the Remove event handler function to the stream.

Syntax

streamingChain.onRefresh(callback: Pricing.Chain.OnRemoveCallback)

Parameters

Value Description Data type Optional Default value
callback Pricing.Chain.OnRemoveCallback 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 a constituent is removed from the stream.

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

await streamingChain
    .onRemove(constituent => console.log(constituent))
    .open();

None.