Table of Contents

TTMSMCPTransportProcessMessageContextEvent Event Type

Hands one inbound protocol message together with the session it arrived on to the server, and returns the message to send back.

API unit family: TMS.MCP.Transport

Remarks

Assign this in preference to TTMSMCPTransportProcessMessageEvent when the server keeps per-session state, because it lets the server resolve the negotiated protocol version and the stored values of the session the message belongs to.

Parameters

Name Description
SessionId Session the message arrived on. Empty for a transport that has no notion of sessions, and also empty for a stateless request on a session-aware transport.
Body Raw request text received from the client, normally a JSON-RPC message.

Returns

The response text to return to the client, or an empty string when the message needs no answer (a notification).