Refinitiv Data Platform Library for TypeScript

session.open

Opens the session.

Syntax

session.open()

Parameters

None.

Returned value

Promise<Session.Session>

Usage

The following example demonstrates how to open a session and check its state to ensure it is opened successfully.

import { Session } from '@refinitiv-data/data';

const session = Session.Desktop.Definition({ appKey: process.env.APP_KEY! }).getSession();

await session.open();

console.log(session.state);

None.