Table of Contents

TTMSMCPClientTransport.OnMessage Event

Occurs for every protocol message the transport receives from the server.

API unit family: TMS.MCP.Client.Transport Declaring type: TTMSMCPClientTransport

Syntax

OnMessage: TTMSMCPClientTransportMessageEvent;

Remarks

Descendants that read on a background worker raise this on that worker, so a handler that updates the user interface must marshal the work. Messages are reported one at a time and in the order the channel delivered them.

Parameters

Name Description
AMessage Raw JSON-RPC payload of the received message, without the framing the underlying channel adds. The handler parses and dispatches it; changing the string has no effect on the transport, which has already handed the message over.