Skip to main content

message-handler package

Provides a plugin for the Agent that implements IMessageHandler interface.

Classes

ClassDescription
Message

A class implementing IMessage.

This is used by MessageHandler.

MessageHandler

A Veramo agent plugin that implements IMessageHandler methods.

This plugin is meant to chain together multiple other IMessageHandler implementations.

When handling a message, the message is passed from one handler to the next, and each handler in the chain can decide if it is able to interpret the message.

If the message can be processed by a handler it is returned as an IMessage. If the message cannot be processed by any of the handlers, an error is thrown.

Abstract Classes

Abstract ClassDescription
AbstractMessageHandlerAn abstract class for creating MessageHandler plugins