How to use the postal.unsubscribe function in postal

To help you get started, we’ve selected a few postal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Hitachi-Automotive-And-Industry-Lab / semantic-segmentation-editor / imports / common / SseMsg.js View on Github external
static unregister(obj) {
        if (obj.subscription)
            postal.unsubscribe(obj.subscription);
        delete obj.subscription;
        delete obj.actions;
        delete obj.sendMsg;
        delete obj.onMsg;
        delete obj.forgetMsg;
        delete obj.retriggerMsg;
    }

postal

Pub/Sub library providing wildcard subscriptions, complex message handling, etc. Works server and client-side.

MIT
Latest version published 3 years ago

Package Health Score

59 / 100
Full package analysis