Dela via


WebSocketAcceptAdapter Class

Definition

This adapts the ASP.NET Core WebSocket Accept flow to match the OWIN WebSocket accept flow. This enables OWIN based components to use WebSockets on ASP.NET Core servers.

public ref class WebSocketAcceptAdapter
public class WebSocketAcceptAdapter
type WebSocketAcceptAdapter = class
Public Class WebSocketAcceptAdapter
Inheritance
WebSocketAcceptAdapter

Constructors

WebSocketAcceptAdapter(IDictionary<String,Object>, Func<WebSocketAcceptContext,Task<WebSocket>>)

Initializes a new instance of WebSocketAcceptAdapter for an OWIN environment.

Methods

AdaptWebSockets(Func<IDictionary<String,Object>,Task>)

Adapt web sockets to OWIN.

Applies to