LSEG Data Library for TypeScript

getSession

Creates and returns a session defined by Session.Desktop.Definition object.

Syntax

sessionDefinition.getSession()

Parameters

None.

Returned value

Promise<Session.Session>

Usage

The following example demonstrates how to create a definition object and get the desktop session instance.

import { Session } from '@lsegroup/data';

const desktopSession: Session = Session.Desktop.Definition('appKey').getSession();

await desktopSession.open();
import { Session } from '@lsegroup/data';

const desktopSession: Session = Session.Desktop.Definition({
        appKey: 'appKey',
        port: 9000,
    }).getSession();

await desktopSession.open();

None.

26 words (0:08 mins)