public static IApplicationBuilder MapSockets(this IApplicationBuilder app, PathString path, SocketHandler socket) { return(app.Map(path, x => x.UseMiddleware <WebSocketMiddleware>(socket))); }
public SocketMiddelware(RequestDelegate next, SocketHandler handler) { _next = next; Handler = handler; }