Use this code:
var start = exports.start = function() {
console.log(' in start of sender.js');
});
or
function start() {
console.log(' in start of sender.js');
});
exports.start = start;
//you can call start();
Use this code:
var start = exports.start = function() {
console.log(' in start of sender.js');
});
or
function start() {
console.log(' in start of sender.js');
});
exports.start = start;
//you can call start();