I have been reading articles about Node.js and MQTT. And I am strange to the syntax as:
client.on('connect', () => {
// do something
})
the () => {} thing, is it like function() {} ready for callback?
Or does it have some specific usage? Is there some reference about that?