Class ServiceCollectionExtensions
Extension methods for registering the WebSocket component with dependency injection.
public static class ServiceCollectionExtensions
Inheritance
Methods
AddRedbRouteWebSocket(IServiceCollection, Action<WsRegistrationOptions>?)
Registers the WS and WSS components and lets the host authenticate incoming connections.
public static IServiceCollection AddRedbRouteWebSocket(this IServiceCollection services, Action<WsRegistrationOptions>? configure)
AddRedbRouteWebSocket(IServiceCollection)
Registers the WS and WSS components with the route context.
public static IServiceCollection AddRedbRouteWebSocket(this IServiceCollection services)