public AbstractWebSocketConnection(AbstractWebSocketHandler handler) { Handler = handler; }
public static IApplicationBuilder MapWebSocketManager(this IApplicationBuilder app, PathString path, AbstractWebSocketHandler handler) { return(app.Map(path, (_app) => _app.UseMiddleware <WebSocketMiddleware>(handler))); }
public WebSocketMiddleware(RequestDelegate next, AbstractWebSocketHandler webSocketHandler) { _next = next; _webSocketHandler = webSocketHandler; }