Table of Contents

TWebSocketUpgrader.Upgrade Method

Upgrades the connection to the WebSocket protocol, answering the handshake with a 101 status code.

Remarks

Only call it when IsWebSocketRequest returns True. After the connection is upgraded, the response must not be modified through the regular response API.

Syntax

Unit: Sparkle.Middleware.WebSocket

function TWebSocketUpgrader.Upgrade: IWebSocket;

See also