Skip to main content
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

TMS.MCP.Server.hppPascalC++
procedure SendNotificationToSession(const ASessionId, AJsonRpc: string);
void __fastcall SendNotificationToSession(const System::UnicodeString ASessionId, const System::UnicodeString AJsonRpc);

Parameters

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