Uwaa/HTTP/Websockets/WebsocketHandler.cs

9 lines
357 B
C#
Raw Normal View History

2024-11-22 07:40:43 +01:00
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);