ServerComponentsEndpointOptions.ConfigureWebSocketAcceptContext Property

Definition

Gets or sets a function to configure the WebSocketAcceptContext for the websocket connections used by the server components.

public Func<Microsoft.AspNetCore.Http.HttpContext,Microsoft.AspNetCore.Http.WebSocketAcceptContext,System.Threading.Tasks.Task>? ConfigureWebSocketAcceptContext { get; set; }
member this.ConfigureWebSocketAcceptContext : Func<Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Http.WebSocketAcceptContext, System.Threading.Tasks.Task> with get, set
Public Property ConfigureWebSocketAcceptContext As Func(Of HttpContext, WebSocketAcceptContext, Task)

Property Value

Remarks

By default, a policy that enables compression and sets a Content Security Policy for the frame ancestors defined in ContentSecurityFrameAncestorsPolicy will be applied.

Applies to