Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;
};
/**