imports/vx/client/code/vxapp.js
/**
     * Set up global subscriptions.
     *
     * @param {function} Mandatory callback invoked when subscriptions are ready.
     */
Set up global subscriptions.
@param {function} Mandatory callback invoked when subscriptions are ready.
Set up global subscriptions . @param { function } Mandatory callback invoked when subscriptions are ready .
doGlobalSubscriptions(callback) {
        let result = VXApp.getSubscriptionParameters()
        if (result.success) {
            OLog.debug("vxapp.js doGlobalSubscriptions subscriptionParameters exist and will be used")
            VXApp.doGlobalSubscriptionsContinued(result.subscriptionParameters, callback)
            return
        }
        Meteor.call("getSubscriptionParameters", (error, result) => {
            if (!result.success) {
                OLog.error(`vxapp.js doGlobalSubscriptions bad result=${OLog.errorString(result)}`)
                callback(false)
                return
            }
            VXApp.doGlobalSubscriptionsContinued(result.subscriptionParameters, callback)
            return
        })
    }
doGlobalSubscriptions ( callback ) { let result = VXApp . getSubscriptionParameters ( ) if ( result . success ) { OLog . debug ( "vxapp.js doGlobalSubscriptions subscriptionParameters exist and will be used" ) VXApp . doGlobalSubscriptionsContinued ( result . subscriptionParameters , callback ) return } Meteor . call ( "getSubscriptionParameters" , ( error , result ) => { if ( ! result . success ) { OLog . error ( ` ${ OLog . errorString ( result ) } ` ) callback ( false ) return } VXApp . doGlobalSubscriptionsContinued ( result . subscriptionParameters , callback ) return } ) }
Set up global subscriptions.
Set up global subscriptions .