14 lines
342 B
JavaScript
14 lines
342 B
JavaScript
'use strict';
|
|
|
|
// Sends a NO-OP command
|
|
module.exports = async connection => {
|
|
try {
|
|
let response = await connection.exec('NOOP', false, { comment: 'Requested by command' });
|
|
response.next();
|
|
return true;
|
|
} catch (err) {
|
|
connection.log.warn({ err, cid: connection.id });
|
|
return false;
|
|
}
|
|
};
|