TTMSMCPTransport.OnProcessMessage Event
Handler called for every inbound message, without session context.
API unit family: TMS.MCP.Transport
Declaring type: TTMSMCPTransport
Syntax
OnProcessMessage: TTMSMCPTransportProcessMessageEvent;
Remarks
Assign either this or TTMSMCPTransport.OnProcessMessageContext before starting; with neither assigned, inbound messages are answered with an empty string. When both are assigned the context form wins and this one is never called.
Parameters
| Name | Description |
|---|---|
body |
Raw request text received from the client, normally a JSON-RPC message. The handler parses it and decides how to answer. |
Returns
The text the channel writes back to the client, or an empty string when the message needs no answer (a notification).