dist/lib/driver.js
function unsubscribe(subscription) {
    const index = exports.subscriptions.indexOf(subscription);
    if (index === -1)
        return;
    subscription.stop();
    // asteroid.unsubscribe(subscription.id) // v2
    exports.subscriptions.splice(index, 1); // remove from collection
    log_1.logger.info(`[${subscription.id}] Unsubscribed`);
}
function unsubscribe(subscription) {
    const index = exports.subscriptions.indexOf(subscription);
    if (index === -1)
        return;
    subscription.stop();
    // asteroid.unsubscribe(subscription.id) // v2
    exports.subscriptions.splice(index, 1); // remove from collection
    log_1.logger.info(`[${subscription.id}] Unsubscribed`);
}
function unsubscribe ( subscription ) { const index = exports . subscriptions . indexOf ( subscription ) ; if ( index === - 1 ) return ; subscription . stop ( ) ; // asteroid.unsubscribe(subscription.id) // v2 exports . subscriptions . splice ( index , 1 ) ; // remove from collection log_1 . logger . info ( ` ${ subscription . id } ` ) ; }
Unsubscribe from Meteor subscription
Unsubscribe from Meteor subscription