onMessage method

Passes a message to the listener.

 Syntax
 Parameters