Table of Contents

TTMSMCPSseTransport.Start Method

Opens the listening port and starts the worker threads.

API unit family: TMS.MCP.Transport.SSE Declaring type: TTMSMCPSseTransport

Syntax

procedure Start; override;

Remarks

Does nothing when the listener is already open. Certificate settings and the port are applied to the listener at this point, which is why they cannot be changed while it is running. The addresses the channel came up on are reported through TTMSMCPSseTransport.OnLog.

Exceptions

Exception Description
Exception Raised when no message handler has been assigned, and by the underlying server when the port cannot be opened or the certificate cannot be used. The worker threads are stopped again before the error propagates, so a failed start does not leave threads behind.