Interface IMessageHandler

An object which handles messages.


A message handler is a simple way of defining a type which can act upon on a large variety of external input without requiring a large abstract API surface. This is particularly useful in the context of widget frameworks where the number of distinct message types can be unbounded.

interface IMessageHandler {
    processMessage(msg): void;

Implemented by


    • Process a message sent to the handler.


      • msg: Message

        The message to be processed.

      Returns void