public SocketMiddleware(RequestDelegate next, SocketHandler ws) { _next = next; _ws = ws; }
public static IApplicationBuilder MapSockets(this IApplicationBuilder app, PathString ps, SocketHandler ws) { return(app.Map(ps, (x) => x.UseMiddleware <SocketMiddleware>(ws))); }
public SocketHandler(ConnectionHandler connection) { Connections = connection; get = this; }