Skip to main content
Table of Contents

TTMSMCPServer.ProcessRequest Method

Processes one inbound JSON-RPC message and returns the response text. This is the entry point a transport calls for every message it receives.

API unit family: TMS.MCP.Server Declaring type: TTMSMCPServer Inherited from: TTMSMCPCustomServer

Syntax

TMS.MCP.Server.hppPascalC++
function ProcessRequest(const Body: string): string;
System::UnicodeString __fastcall ProcessRequest(const System::UnicodeString Body);

Remarks

A message without a method is treated as the answer to a request this server sent to the client and is routed to the waiting caller. A message without an identifier is a notification and produces an empty string.

Parameters

Name Description
Body Raw JSON-RPC message text.

Returns

Response text to send back, or an empty string when the message needs no response.