TTMSMCPStreamableHTTPTransport.SendNotificationToSession Method
Pushes a server-initiated notification to one session.
API unit family: TMS.MCP.Transport.StreamableHTTP
Declaring type: TTMSMCPStreamableHTTPTransport
Syntax
procedure SendNotificationToSession(const ASessionId, ANotification: string); override;
Remarks
The notification is recorded against the session so a client that reconnects and asks to resume can still receive it, and it is written immediately when a stream is open. Nothing is reported back: an unknown session is silently ignored, and there is no result to say whether a client ever saw it. Line breaks in the text are replaced with spaces, since the stream format is line-based.
Parameters
| Name | Description |
|---|---|
ASessionId |
Session to deliver the notification to. |
ANotification |
Notification text to send, normally a JSON-RPC notification. |