This:
HeartbeatBridge.getInfo(8001, response => { return response })
returns: undefined
But this:
HeartbeatBridge.getInfo(8001, response => { console.log(response) })
returns a value in my log.
Question: Why the first line returns undefined? How can i get a value returned in the first line?