Tutorial: InterApplicationBus.unsubscribe

InterApplicationBus.unsubscribe

Unsubscribes to messages from the specified application on the specified topic

Example

async function unsubscribe(topic, listener) {
    return await fin.InterApplicationBus.unsubscribe(fin.me, topic, listener);
}

unsubscribe('topic', () => console.log('Not receiving messages')).then(() => console.log('Unsubscribe')).catch(err => console.log(err));