Table of Contents

TTMSMCPServer.SendNotificationToSession Method

Sends a ready-made JSON-RPC notification to one session. Use it for notifications the server does not build itself. Does nothing when no transport is assigned.

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

Syntax

procedure SendNotificationToSession(const ASessionId, AJsonRpc: string);

Parameters

Name Description
ASessionId Identifier of the session to send to.
AJsonRpc Complete JSON-RPC notification text.