OnMessage typedef

OnMessage = void Function(String message)

A function that takes a message and does something useful with it.

Implementation

typedef void OnMessage(String message);