Class WsEndpoint
WebSocket endpoint. Creates either a producer (ClientWebSocket) or consumer (Kestrel WS server).
public class WsEndpoint : EndpointBase<WsEndpointOptions>, IEndpoint, IEndpointStatistics
Inheritance
Implements
Properties
Methods
BuildProducerUrl()
Builds the full WebSocket URL for the producer client.
public string BuildProducerUrl()
CreateConsumer(IProcessor)
Creates a consumer for receiving messages from this endpoint.
public override IConsumer CreateConsumer(IProcessor processor)
CreateProducer()
Creates a producer for sending messages to this endpoint.
public override IProducer CreateProducer()
Start(CancellationToken)
Declares WebSocket support on the listener BEFORE any consumer starts it. The route context
public override Task Start(CancellationToken ct = default)
Constructors
WsEndpoint(EndpointUri, WsComponent, WsEndpointOptions)
Creates a WebSocket endpoint.