Class SignalREndpointOptions

Assembly: redb.Route.SignalR.dll

Options for the SignalR endpoint. Bound from URI parameters via reflection.
URI format: signalr:host:port/hubPath?mode=Client&inOut=true&messagePack=true

public class SignalREndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→SignalREndpointOptions

Inherited Members

Properties

AccessToken

Access token for client authentication (JWT). Used by producer in client mode.

public string? AccessToken { get; set; }

Bridge

When true (default), client-mode producer calls the bridge hub entry point

public bool Bridge { get; set; }

ConnectionFactory

Named from the route registry. Lets the access token

[RegistryReference(typeof(SignalRConnectionFactory))]
public string? ConnectionFactory { get; set; }

DefaultGroup

Default group name. If set, OnConnectedAsync automatically adds the connection to this group.

public string? DefaultGroup { get; set; }

Host

Bind/connect host. Parsed from URI path. Default: 0.0.0.0.

public string Host { get; set; }

InOut

If true, the consumer returns exchange Out body as the hub method return value (InOut pattern).

public bool InOut { get; set; }

MaxConnections

Maximum hub connections this endpoint accepts (server mode). 0 (default) = unlimited.

public int MaxConnections { get; set; }

MaxParallelInvocationsPerClient

SignalR's own MaximumParallelInvocationsPerClient: how many hub method calls ONE

public int MaxParallelInvocationsPerClient { get; set; }

MaxReconnectAttempts

Maximum reconnect attempts. 0 = unlimited. Default: 0.

public int MaxReconnectAttempts { get; set; }

MessagePack

Use MessagePack protocol instead of JSON. Default: false.

public bool MessagePack { get; set; }

Method

Hub method name. For consumer: filter invocations to this method only.

public string? Method { get; set; }

Mode

Producer mode: Client (HubConnection to remote) or Server (IHubContext broadcast).

public SignalRMode Mode { get; set; }

Port

Bind/connect port. Parsed from URI path. Default: 5000.

public int Port { get; set; }

Reconnect

Auto-reconnect on disconnect (client mode). Default: false.

public bool Reconnect { get; set; }

ReconnectInterval

Interval between reconnect attempts in milliseconds (client mode). Default: 5000.

public int ReconnectInterval { get; set; }

Ssl

Enable TLS. Default: false.

public bool Ssl { get; set; }

SslCertPassword

Password for the PFX certificate.

public string? SslCertPassword { get; set; }

SslCertPath

Path to PFX certificate file for TLS (consumer/server).

public string? SslCertPath { get; set; }

TargetGroup

Default group for server-mode producer. Overridden by signalR.Group header.

public string? TargetGroup { get; set; }

TargetType

Default target for server-mode producer: All, Group, User, Connection.

public string TargetType { get; set; }

Transport

Preferred transport for client connections. Default: WebSockets.

public SignalRTransport Transport { get; set; }

TrustAllCertificates

Client-mode producer only: accept any server certificate, including a self-signed one.

public bool TrustAllCertificates { get; set; }

Methods

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()