I have this simple code:
server.getConnections(function(err, count) {
console.log(count)
this.connections = count;
return connections
});
console.log(connections);
I get connection is undefined but count has value of 1 actually.
What am I doing wrong?