conn.close(); }); });
connection.on('error', (error) => { console.error('Error during connection', error); connection.close(); }); connection.on('close', () => {
connection.close();
connection.close(); if (jsonObj.rsc == 2001 || jsonObj.rsc == 2000) { console.log('----> [nonblocking-async-ws] response for notification through ws ' + jsonObj.rsc); connection.close(); if (jsonObj.rsc == 2001 || jsonObj.rsc == 2000) { console.log('----> [nonblocking-async-ws] response for notification through ws ' + jsonObj.rsc + ' - ' + ri); connection.close();
connection.on('error', (error) => { console.error('Error during connection', error); connection.close(); }); connection.on('close', () => {