TSparkleWebSocketMiddleware Class
Middleware component that enables WebSocket support in the server component it is attached to.
Remarks
TSparkleWebSocketMiddleware creates and configures a TWebSocketMiddleware for each module created by the server component. Requests that are valid WebSocket handshakes get an IWebSocketUpgrader in their context, which the module can use to upgrade the connection to a WebSocket.
Syntax
Unit: Sparkle.Comp.WebSocketMiddleware
TSparkleWebSocketMiddleware = class(TSparkleMiddleware);
Constructors
| Name | Description |
|---|---|
| Create | Creates a new WebSocket middleware component. |
Properties
| Name | Description |
|---|---|
| AllowedOrigins | Gets or sets the list of request origins allowed to open a WebSocket connection. |