onMessage method

This method is called whenever a message is received.

 Syntax
 Parameters