MessageCollector.onMessage

Set the callback to be run upon each message

class MessageCollector
void
onMessage
(
void delegate
(
Message
)
callback
)

Parameters

callback void delegate
(
Message
)

a void delegate(Message), assigned to this.callback

Meta