Class WsConsumer
WebSocket consumer. Embedded Kestrel-based WebSocket server that accepts connections,
receives message frames, and dispatches them into the route processor pipeline.
Supports text and binary frames, subprotocol negotiation, MaxConnections throttling,
and InOut exchange pattern for sending response frames back.
public sealed class WsConsumer : IConsumer
Inheritance
Implements
Properties
ActiveConnections
Number of currently connected WebSocket clients.
public int ActiveConnections { get; }
BaseUrl
The base URL the server is listening on. Available after Start().
public string? BaseUrl { get; }
ConnectionIds
Ids of the currently connected clients, addressable by a server-mode producer.
public IReadOnlyCollection<string> ConnectionIds { get; }
Endpoint
The endpoint this consumer is attached to (for diagnostics/logging).
public IEndpoint Endpoint { get; }
Methods
Constructors
WsConsumer(WsEndpoint, IProcessor, WsEndpointOptions)
Creates a WebSocket consumer.