Table of Contents

TTMSMCPStreamableHTTPTransport.Stop Method

Closes the listening port, ends every session and stops the worker threads.

API unit family: TMS.MCP.Transport.StreamableHTTP Declaring type: TTMSMCPStreamableHTTPTransport

Syntax

procedure Stop; override;

Remarks

Safe to call on a channel that is not running. Every open session is reported through TTMSMCPTransport.OnSessionRemoved so the server can release its per-session state. Events that have been queued but not written are discarded rather than flushed, and the worker threads are joined before the call returns, so it may take up to the length of one worker cycle.