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
| Parameter | Type | Description |
|---|---|---|
| options | MessagingRouterOptions | Initialization option |
Returns:
Router
Expressjs router