Method AddRedbRouteWebSocket(IServiceCollection, Action<WsRegistrationOptions>?)
Registers the WS and WSS components and lets the host authenticate incoming connections.
services.AddRedbRouteWebSocket(o =>
o.Authenticate = async ctx => await myJwtValidator.ValidateAsync(
ctx.Request.Query["access_token"]));
public static IServiceCollection AddRedbRouteWebSocket(this IServiceCollection services, Action<WsRegistrationOptions>? configure)