Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static wrapDataFeed = () => new Observable(obs => {
try {
logger.info('Connecting to Symphony...')
Symphony.getDatafeedEventsService({
onMessage:
(messages: Symphony.Message[]) => {
obs.next(messages)
},
})
} catch (error) {
logger.error('connection to symphony failed', error)
obs.error(error)
}
})