You then create event handlers using if statements to either turn the lamp on or off with the GPIO command `.on()` or `.off()` .
Take note of the message event handler. Whenever your program receives a message from the application client, you parse the message using `message.message`. You then create event handlers using if statements to either turn the lamp on or off with the GPIO command `.on()` or `.off()` .