exchange-rate-back-server/src/BroadcastLatestDataHandler.js
/**
     * Broadcast the latest data update to all subscriptions
     * @param {*} latestDataMessage 
     */
Broadcast the latest data update to all subscriptions
@param {*} latestDataMessage
Broadcast the latest data update to all subscriptions @param { * } latestDataMessage
broadcast(latestDataMessage) {
        let self = this;
        self.topic
            .publisher()
            .publish(latestDataMessage)
            .then(messageId => {
                console.log(`Message ${messageId} published.`);
            })
            .catch(err => {
                console.error('ERROR:', err);
            });
    }
broadcast ( latestDataMessage ) { let self = this ; self . topic . publisher ( ) . publish ( latestDataMessage ) . then ( messageId => { console . log ( ` ${ messageId } ` ) ; } ) . catch ( err => { console . error ( 'ERROR:' , err ) ; } ) ; }
Broadcast the latest data update to all subscriptions
 @param {*} latestDataMessage
Broadcast the latest data update to all subscriptions @param { * } latestDataMessage