imports/vx/client/code/vxapp.js
/**
     * Refresh global subscriptions.
     *
     * @param {object} callback Mandatory callback.
     */
Refresh global subscriptions.
@param {object} callback Mandatory callback.
Refresh global subscriptions . @param { object } callback Mandatory callback .
refreshGlobalSubscriptions(callback) {
        let result = VXApp.getSubscriptionParameters()
        if (!result.success) {
            OLog.error(`vxapp.js refreshGlobalSubscriptions unable to get subscription parameters result=${OLog.errorString(result)}`)
            callback(false)
            return
        }
        Meteor.defer(() => {
            VXApp.globalSubscriptions(result.subscriptionParameters, (error, result) => {
                if (!result.success) {
                    OLog.error(`vxapp.js refreshGlobalSubscriptions unable to refresh global subscriptions result=${OLog.errorString(result)}`)
                    callback(false)
                    return
                }
                callback(true)
            })
        })
    }
refreshGlobalSubscriptions ( callback ) { let result = VXApp . getSubscriptionParameters ( ) if ( ! result . success ) { OLog . error ( ` ${ OLog . errorString ( result ) } ` ) callback ( false ) return } Meteor . defer ( ( ) => { VXApp . globalSubscriptions ( result . subscriptionParameters , ( error , result ) => { if ( ! result . success ) { OLog . error ( ` ${ OLog . errorString ( result ) } ` ) callback ( false ) return } callback ( true ) } ) } ) }
Refresh global subscriptions.
Refresh global subscriptions .