Class WsConnectionFactory

Assembly: redb.Route.WebSocket.dll

Named connection factory for WebSocket. Register it in the route registry and reference it by
name from the endpoint URI (connectionFactory=my-ws) so the TLS certificate password
never has to appear in the URI, and therefore can never reach logs, telemetry, or the dashboard.

The listen/target address stays in the endpoint path — a factory carries TLS material and
timeouts only and can never silently redirect a route. Note the wss scheme still forces
TLS on regardless of what the factory says.

public sealed class WsConnectionFactory

Inheritance

Object→WsConnectionFactory

Properties

ConnectTimeout

Connect timeout in milliseconds.

public int ConnectTimeout { get; set; }

Ssl

Serve/connect over TLS.

public bool Ssl { get; set; }

SslCertPassword

Password for the PFX certificate.

public string? SslCertPassword { get; set; }

SslCertPath

Path to the PFX certificate.

public string? SslCertPath { get; set; }