Skip to content

Commit fbf6991

Browse files
committed
fix streaming omm example
1 parent c79c3b5 commit fbf6991

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/3.Delivery/3.1-Streaming/streaming-omm.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ import { Delivery, Session } from '@lseg-workspace-data/data';
55
import { OMMRefreshResponse, OMMStatusResponse, OMMStream, OMMUpdateResponse } from '@lseg-workspace-data/types';
66
import { getSession } from '../../Common/session';
77

8+
const STREAM_ERROR_MESSAGE = 'Stream error.';
9+
810
const session = getSession();
911

1012
session.on(Session.Event.StateChanged, (_session, state) => console.log('Session state:', state));
1113
session.on(Session.Event.EventReceived, (_session, event) => console.log('Authentication event:', event));
1214
session.on(Session.Event.Error, err => console.log('Session error:', err));
1315

16+
1417
(async () => {
1518
try {
1619
await session.open();

0 commit comments

Comments
 (0)