Skip to main content

MessagingRouter() function

Creates a router for handling incoming messages.

Messages posted to this router get sent to the handleMessage method of the associated agent where this is used.

Signature:

MessagingRouter: (options: MessagingRouterOptions) => Router

Parameters

ParameterTypeDescription
optionsMessagingRouterOptionsInitialization option

Returns:

Router

Expressjs router