Closed HUFGhani closed 2 years ago
I've been following the example code, below :
var address = sock.address(); console.info('Server Listening: ' + address.address + ':' + address.port); });
however, I want to get the data out of sock.address() in to global variable like this
var address = null s.on("listening", function(sock) { address = sock.address(); }); console.log(address)
however, I get undefined from it any idea what can I do.
I've been following the example code, below :
however, I want to get the data out of sock.address() in to global variable like this
however, I get undefined from it any idea what can I do.