LSEG Data Library for TypeScript

session.open

This method is used to open 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 '@lsegroup/data';

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

await session.open();

console.log(session.state);

None.

28 words (0:09 mins)