onMessage property

OnMessage onMessage
getter/setter pair

What to do when a message is encountered, defaults to print.

Implementation

OnMessage onMessage;