Refinitiv Data Platform Library for TypeScript

close

Allows you to close the streaming chain connection.

Syntax

streamingChain.close()

Parameters

None.

Returned value

Promise<void> an empty promise

Usage

The following example demonstrates how to close previously opened pricing chain stream.

const streamingChain = Pricing.Chain.Definition({
    name: '.AV.HSI',
    skipEmpty: true,
    nameGuessingQuantity: 8,
}).getStream();

await streamingChain.open();

// get and process the streaming data

await streamingChain.close();

None.