void handler=(Function newHandler)

Sets the handler that is invoked for every incoming message.

The handler is invoked in the root-zone (Zone.ROOT).

Source

void set handler(Function newHandler);