If you want to receive events no matter whether you have sent a command or not, you need to observe them. For that call the observe function on the application's events property and handle the received events using the received function: