Within the listener, some if statements will give your function structure to handle different types of messages. Here I’ll...