Theia API Documentation v1.65.0
    Preparing search index...

    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: Message): void;
    }

    Implemented by

    Index

    Methods

    • Process a message sent to the handler.

      Parameters

      • msg: Message

        The message to be processed.

      Returns void