TSparkleSocketDispatcher Class
Server dispatcher component that serves the connected Sparkle server components using the Sparkle socket server.
Remarks
TSparkleSocketDispatcher wraps a TSocketHttpServer. Connect server components to it through their Dispatcher property and set Active to True to start serving requests.
Available for the Linux and Windows platforms. On Windows, TSparkleHttpSysDispatcher remains the recommended dispatcher for high-load production servers; the socket dispatcher is useful when administrative URL reservations are not an option or when identical behavior across Windows and Linux is desired.
Syntax
Unit: Sparkle.Comp.SocketDispatcher
TSparkleSocketDispatcher = class(TSparkleDispatcher);
Properties
| Name | Description |
|---|---|
| Active | Gets or sets whether the dispatcher is active. Setting it to True starts the underlying socket server; setting it to False stops it. |
| Server | The underlying Sparkle socket server. |