Table of Contents

TTMSMCPCustomClientConnection.Send Method

Sends a prepared protocol message over the transport without naming the method it carries.

API unit family: TMS.MCP.Client.Connection Declaring type: TTMSMCPCustomClientConnection

Overloads

Overload 1

Sends a prepared protocol message over the transport without naming the method it carries.

procedure Send(const AJsonRpc: string); overload;

Remarks

Deprecated because a transport that has to route or label the message cannot do so without the method name. Use the overload that takes the method instead. Does nothing when no transport exists.

Parameters

Name Description
AJsonRpc Complete message to transmit.

Overload 2

Sends a prepared protocol message over the transport.

procedure Send(const AJsonRpc: string; AMethod: string); overload;

Remarks

Does nothing when no transport exists.

Parameters

Name Description
AJsonRpc Complete message to transmit.
AMethod Method the message carries, used by the transport to route and label the exchange.

Overload 3

Sends a prepared protocol message over the transport, naming the subject it acts on.

procedure Send(const AJsonRpc: string; AMethod: string; ANameOrUri: string); overload;

Remarks

Does nothing when no transport exists.

Parameters

Name Description
AJsonRpc Complete message to transmit.
AMethod Method the message carries, used by the transport to route and label the exchange.
ANameOrUri Name of the tool or prompt, or the address of the resource the message acts on. Pass an empty string when the method acts on nothing in particular.