diffusion
Version:
Diffusion JavaScript client
23 lines (22 loc) • 647 B
JavaScript
;
/**
* @module Client.Services
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.notifyUnsubscriptionService = void 0;
/**
* Notification of unsubscription,
*/
exports.notifyUnsubscriptionService = {
/**
* Handle an inbound request.
*
* @param internal the internal session instance
* @param notification the inbound notification
* @param callback the service reference callback
*/
onRequest: function (internal, notification, callback) {
callback.respond();
internal.getRouting().unsubscribe(notification.id, notification.reason);
}
};