How to use the @stomp/stompjs.client function in @stomp/stompjs

To help you get started, we’ve selected a few @stomp/stompjs 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 stomp-js / ng2-stompjs / dist / src / stomp.service.js View on Github external
StompService.prototype.initStompClient = function () {
        // Attempt connection, passing in a callback
        this.client = Stomp.client(this.config.url);
        // Configure client heart-beating
        this.client.heartbeat.incoming = this.config.heartbeat_in;
        this.client.heartbeat.outgoing = this.config.heartbeat_out;
        // Auto reconnect
        this.client.reconnect_delay = this.config.reconnect_delay;
        if (!this.config.debug) {
            this.debug = function () { };
        }
        // Set function to debug print messages
        this.client.debug = this.debug;
    };
    /**

@stomp/stompjs

STOMP client for Javascript and Typescript

Apache-2.0
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis