Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createSockJS() {
const websrv = parseInt(localStorage.getItem('WEBSRV'));
const url = `${config[process.env.NODE_ENV].brokerWSUrl[this.platformName]}websrv${websrv}`;
return new SockJS(url);
}
closeWebSocketConnection() {