Uwaa/HTTP/Websockets/WebsocketHandler.cs
2024-11-22 06:40:43 +00:00

8 lines
357 B
C#

namespace Uwaa.HTTP.Websockets;
/// <summary>
/// A delegate called once a HTTP request is upgrade to a websocket.
/// </summary>
/// <param name="ws">The websocket to the remote endpoint.</param>
/// <returns>The status to send to the client when closing the websocket.</returns>
public delegate Task<CloseStatus> WebsocketHandler(WebsocketRemote ws);